binbin 0.2.0

Create structured binary files in arbitrary formats
Documentation
  • Coverage
  • 100%
    42 out of 42 items documented2 out of 36 items with examples
  • Size
  • Source code size: 35.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • apparentlymart/rust-binbin
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • apparentlymart

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.