Crate binary_stream
source · [−]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.
Structs
Read from a stream.
Write to a stream.
Stream that wraps a file.
Stream that wraps an owned buffer.
Stream that wraps a slice of bytes.
Enums
Error generated reading and writing binary data.
Variants to describe endianness.
Indicates how the file stream should open the underlying file.
Traits
Trait for decoding from binary.
Trait for encoding to binary.
Trait for a readable stream.
Trait for streams that can seek.
Trait for a writable stream.
Type Definitions
Result type for binary errors.