Expand description
Utils for working with packed bit masks
Functionsยง
- or_
write_ ๐ โu64_ bytes - Similar to
write_u64_bytes
, but this method ORs the offset addresseddata
andchunk
instead of overwriting - read_
bytes_ ๐ โto_ u64 - Safety
- set_
bits - Util function to set bits in a slice of bytes.
- set_
upto_ ๐ โ64bits - Similar to
set_bits
but sets only upto 64 bits, actual number of bits set may vary. Returns a pair of the number of0
bits and the number of bits set - write_
u64_ ๐ โbytes - Safety