Module octets
Functions§
- from_
bits_ u64 - Convert a bit count into a byte (octet) count.
- gib
- Multiply by 1024³ to express a byte count in gibibytes (GiB).
- gib_u64
u64variant ofgib.- kib
- Multiply by 1024 to express a byte count in kibibytes (KiB).
- kib_u32
u32variant ofkib.- kib_u64
u64variant ofkib.- mib
- Multiply by 1024² to express a byte count in mebibytes (MiB).
- mib_u32
u32variant ofmib.- mib_u64
u64variant ofmib.- unpack_
octets_ as_ u16 - A helper function that unpacks a sequence of 2 bytes found in the buffer with starting at the given offset, into a u16.
- unpack_
octets_ as_ u32 - A helper function that unpacks a sequence of 4 bytes found in the buffer with starting at the given offset, into a u32.