-
Notifications
You must be signed in to change notification settings - Fork 564
Closed
Description
The Glossary and "Type Layout" don't specify the size of a "byte".
- Was that intentional?
- Is it a real byte? (platform-dependent smallest unit of addressable memory?)
- Is it guaranteed to be an octet?
I think it's worth being explicit about that.
BTW, the bool reference seems somewhat contradictory:
size_of::<bool>() == 1implies platform-dependent byte- The hexadecimal bit-patterns imply
u8(guaranteed octet)
Note
Previous discussions:
IMO, bytes are more honest and correct than octets (for bool and some enums, at least). For primitives such as char and u8, an exact bit-count is better than bytes
Metadata
Metadata
Assignees
Labels
No labels