Skip to main content

Crate qubit_codec_binary

Crate qubit_codec_binary 

Source
Expand description

§Qubit Binary Codec

Buffer-oriented binary codecs for Rust.

This crate provides fixed-width scalar, LEB128, and ZigZag codecs for caller-managed byte buffers. Stream-oriented readers and writers live in qubit-io-binary.

Structs§

BinaryCodec
Type-level unchecked binary codec for one scalar type and one byte order.
Leb128Codec
Type-level unchecked LEB128 codec.
Leb128DecodeError
Error reported while decoding a LEB128 integer from a byte buffer.
NonStrict
Marker type selecting non-strict decoding.
Strict
Marker type selecting strict decoding.
ZigZagCodec
Type-level unchecked ZigZag + unsigned LEB128 codec.

Enums§

Leb128DecodeErrorKind
Classifies failures detected while decoding LEB128 integers.

Traits§

Leb128DecodePolicy
Describes a type-level LEB128 decoding policy.