byters

Crates.iobyters
lib.rsbyters
version0.2.1
created_at2025-09-12 21:42:43.633133+00
updated_at2025-11-23 18:41:26.855352+00
descriptionsome small quality of life utilities to work with bits.
homepagehttps://github.com/philmish/byters
repositoryhttps://github.com/philmish/byters
max_upload_size
id1836868
size15,568
(philmish)

documentation

README

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
Commit count: 10

cargo fmt