3 ms·
> I don't know how that macro works, but in kernel C bitfields are used in structs that map to device registers (that are mapped to memory). Same thing. There'
by steveklabnik 9y ago
> I don't know how that macro works, but in kernel C bitfields are used in structs that map to device registers (that are mapped to memory).
Same thing. There's no requirement to use it in a kernel context, though you can if you'd like.
> So if i want to store a series of things with random (length) types in a single array, i can ? Sounds like i can, even though you explained the simpler case.
Yes, though it'd use a lot of unsafe code.
> And for the third (edit:second) time, that is not my point. Thing is that C does not have "secret stuff" and rust does.
Ah, sorry! The contrapositive (or whatever) is tough. My bad for misunderstanding.