We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[bitfield(u64)] #[derive(PartialEq)] pub struct Message { #[bits(8)] pub message_id: u8, #[bits(24)] pub time_of_reception: u32, #[bits(3456)] pub payload: [u8; 432], }
if i remove (u64), throws unknown type.
(u64)
unknown type
How can I use something this crate for bigger fields?
The text was updated successfully, but these errors were encountered:
bitfields
Unfortunately, u128 is the biggest bitfield size supported. Everything beyond has to be put into multiple bitfields, like:
#[bitfield(u128)] struct A { // ... } #[bitfield(u128)] struct B { // ... } #[repr(C)] struct AB { a: A, b: B, }
The same limitation applies to fields of bitfields.
Sorry, something went wrong.
No branches or pull requests
if i remove
(u64)
, throwsunknown type
.How can I use something this crate for bigger fields?
The text was updated successfully, but these errors were encountered: