Expand description
§BitPtr
core::ptr for bit offsets.
pointers in Rust are locked to byte-offsets, or every 8 bits.
bitptr aims to provide methods to help read and write data at off-byte offsets.
The primary use for bitptr is to pack data when the size of data is not known at compile time.
For types and sizes known at compile time, consider bilge.
Structs§
- BitPtr
- A pointer to a bit in memory.
- BitPtr
Mut - A mutable pointer to a bit in memory.
- SubByte
- A sub-byte offset.
Functions§
- copy_
nonoverlapping ⚠ - Copies
bit_countbits fromsrctodst. The source and destination must not overlap. - dangling
- Creates a dangling raw bit pointer.
- dangling_
mut - Creates a dangling mutable raw bit pointer.
- fill⚠
- Fills
bit_countbits atdst. - null
- Creates a null raw bit pointer.
- null_
mut - Creates a null mutable raw bit pointer.
- swap_
nonoverlapping ⚠ - Swaps
bit_countbits between the two regions of memory beginning atxandy. The two regions must not overlap.