modular-bitfield-ordering

Crates.iomodular-bitfield-ordering
lib.rsmodular-bitfield-ordering
version0.1.0
sourcesrc
created_at2023-11-01 20:03:43.137247
updated_at2023-11-01 20:03:43.137247
descriptionProvide u8be..u128be, u8le..u128le for modular-bitfield
homepage
repositoryhttps://github.com/chabapok/modular-bitfield-ordering
max_upload_size
id1021716
size16,701
(chabapok)

documentation

https://docs.rs/modular-bitfield-ordering

README

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,
}

Commit count: 2

cargo fmt