#bit-fields #bit #bitfields #order

no-std modular-bitfield-ordering

Provide u8be..u128be, u8le..u128le for modular-bitfield

1 unstable release

0.1.0 Nov 1, 2023

#2065 in Data structures

21 downloads per month

MIT/Apache

7KB
90 lines

Modular bitfield ordering types

This crate provide some types to use with the modular-bitfield crate:

For big endian layout: u8be, u16be, u32be, u64be, u128be
For little endian layout: u8le, u16le, u32le, u64le, u128le

Example


#[bitfield]
struct Foo {
    a: u16be,
    b: u32le,
}

Dependencies

~1.5MB
~34K SLoC