Expand description
Library for reading and writing binary data.
If the wasm32
feature is enabled then length
prefixed strings use a u32
for the length so
that the encoded data is portable across platforms.
Otherwise string length is encoded using usize
which
may vary across platforms.
wasm32
will also change read_usize to read a 32bit integer
If you only want the u32 strings please use string_len_u32
feature
Structs§
- Binary
Reader - Read from a stream.
- Binary
Writer - Write to a stream.
- File
Stream - Stream that wraps a file.
- Memory
Stream - Stream that wraps an owned buffer.
- Slice
Stream - Stream that wraps a slice of bytes.
Enums§
- Binary
Error - Error generated reading and writing binary data.
- Endian
- Variants to describe endianness.
Traits§
- Decode
- Trait for decoding from binary.
- Encode
- Trait for encoding to binary.
- Read
Stream - Trait for a readable stream.
- Seek
Stream - Trait for streams that can seek.
- Write
Stream - Trait for a writable stream.
Type Aliases§
- Result
- Result type for binary errors.