binbin

Crates.iobinbin
lib.rsbinbin
version0.2.0
sourcesrc
created_at2021-07-04 22:31:37.271433
updated_at2021-07-05 17:29:33.737009
descriptionCreate structured binary files in arbitrary formats
homepagehttps://github.com/apparentlymart/rust-binbin
repositoryhttps://github.com/apparentlymart/rust-binbin
max_upload_size
id418785
size35,817
Martin Atkins (apparentlymart)

documentation

README

binbin for Rust

binbin is a library for writing structured binary data in arbitrary formats.

It has the following useful features, implemented in terms of std::io::Write, std::io::Seek, and std::io::Read:

  • Automatically encoding Rust integer types as either little-endian or big-endian.
  • Insert padding to align to a particular number of bytes, such as padding to the nearest four-byte increment.
  • Insert placeholders for values that won't be known until later on in the writing process, such as the size of some variable-sized data to follow, and then update them in-place once you know the final value.
  • Derive new values from blocks of data already written, such as including a checksum as part of a header.

For more information, see the binbin documentation.

Commit count: 19

cargo fmt