buf_sized
Calculate accumulated buffer sizes of types.
Unlike std::mem::size_of<T>(), this crate calculates the size of the buffer that would be required to serialize the
type without taking alignment into account.
Usage
use buf_size;
use BufSized;
Contribution guidelines
- Use
cargo fmt - Use
cargo clippy -- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used -W clippy::cargo