Module bits
Expand description
Constants§
- U8_
0_ BITS - The shift/mask range for the first 8 bits of a u32.
- U8_
1_ BITS - The shift/mask range for the second 8 bits of a u32.
- U8_
2_ BITS - The shift/mask range for the third 8 bits of a u32.
- U8_
3_ BITS - The shift/mask range for the fourth 8 bits of a u32.
- U16_
0_ BITS - The shift/mask range for the first 16 bits of a u32.
- U16_
1_ BITS - The shift/mask range for the second 16 bits of a u32.
Functions§
- bits
- Statically define a shift/mask range as a literal range of bits.
- extract
- Extract the value of the bits defined by the shift/mask range.
- extract_
f32 - Extract 32 bits of the u32 at the given index in the slab.
- extract_
i8 - Extract 8 bits of the u32 at the given index in the slab.
- extract_
i16 - Extract 16 bits of the u32 at the given index in the slab.
- extract_
i32 - Extract 32 bits of the u32 at the given index in the slab.
- extract_
u8 - Extract 8 bits of the u32 at the given index in the slab.
- extract_
u16 - Extract 16 bits of the u32 at the given index in the slab.
- extract_
u32 - Extract 32 bits of the u32 at the given index in the slab.
- insert
- Insert the value of the bits defined by the shift/mask range.