Crate irox_bits

Source
Expand description

§Bits & Bobs. No-std/No-alloc bit/byte manipulation of streams.

The main traits provided by this crate are Bits (analogous to std::io::Read), and MutBits (analogous to std::io::Write).

Also included are multi-OS wrappers SeekRead and SeekWrite, and a more organic UTF-8 encoding/decoding setup for chars.

This is an Irox foundational crate, it has no external dependencies, is no-std/no-alloc by default (but can be augmented by using the std and alloc features), and many other irox crates extend and augment the functionality contained herein. [irox_structs] is notable as it provides a derivable way to encode/decode structs as a sequence of bytes.

§Features

Modules§

  • UTF-8 Encoding & Decoding

Structs§

Enums§

Traits§

  • Read methods for the primitive types
  • Converts to the value from a constant number of bytes
  • Write methods for the primitive types
  • Trait to move the current read/write position of a stream.
  • Trait to permit an atomic Seek+Read operation
  • Trait to permit an atomic Seek+Write operation
  • Converts the value into a constant number of bytes
  • Writes ‘self’ to the provided MutBits impl in big endian order.

Functions§

Type Aliases§