byters 0.2.1

some small quality of life utilities to work with bits.
Documentation
  • Coverage
  • 34.21%
    13 out of 38 items documented0 out of 27 items with examples
  • Size
  • Source code size: 15.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 715.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • philmish/byters
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • philmish

byters

a collection of utilities i find myself implementing everytime i work with bits and bytes in rust collected into a single crate. this crate treats bits as 0 indexed, starting at the least significant bit.

these utilities include:

  • reading single or multiple bits from a primitiv number type
  • reading bytes as a primitiv number type with a specifc byte ordering
  • converting primitive number types into a slice of bytes with a specific byte ordering
  • setting or unsetting bits