From d9170bd0853b82d74a6108cfa84f74a2582fbfa8 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Tue, 23 Jan 2024 20:50:24 +0530 Subject: Note about as_chunks API. --- src/vrrpv2.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index 6fc80a3..e0f45a6 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -163,6 +163,7 @@ pub fn from_bytes(bytes: &[u8]) -> Result { Ok(vrrpv2) } +/// TODO: as_chunks is nicer but not stabilised yet. fn checksum(bytes: &[u8]) -> u16 { let mut sum: u32 = 0; for chunk in bytes.chunks(2) { -- cgit v1.2.3