Skip to main content

Crate gaia_binary

Crate gaia_binary 

Source
Expand description

Binary encoding and decoding for Gaia project.

Re-exports§

pub use reader::BinaryReader;
pub use traits::BinaryFormat;
pub use writer::BinaryWriter;

Modules§

reader
traits
writer

Structs§

BigEndian
Big endian implementation.
Fixed
Fixed-size encoding with a specific byte order.
Leb128
Variable-length encoding (LEB128).
LittleEndian
Little endian implementation.
TrackingReader
A reader wrapper that tracks position.
TrackingWriter
A writer wrapper that tracks position.
ZigZag
ZigZag transformation wrapper for signed integers.

Traits§

ByteOrder
Byte order traits.
ReadBytesExt
Extension trait for reading binary data.
WriteBytesExt
Extension trait for writing binary data.

Functions§

read_i32_leb128
Read an i32 from LEB128 encoding.
read_i64_leb128
Read an i64 from LEB128 encoding.
read_u32_leb128
Read a u32 from LEB128 encoding.
read_u64_leb128
Read a u64 from LEB128 encoding.
write_i32_leb128
Write an i32 to LEB128 encoding.
write_i64_leb128
Write an i64 to LEB128 encoding.
write_u32_leb128
Write a u32 to LEB128 encoding.
write_u64_leb128
Write a u64 to LEB128 encoding.