Crate binary_stream
source ·Expand description
Read and write binary data to streams.
An asynchronous version using futures::io is available using the async
feature.
Strings are length prefixed using u32
by default, use
the 64bit
feature if you really need huge strings.
Structs
- Read from a stream.
- Write to a stream.
- Options for reading and writing.
Enums
- Variants to describe endianness.
Traits
- Trait for decoding from binary.
- Trait for encoding to binary.
Functions
- Decode from a binary buffer.
- Decode from a stream.
- Encode to a binary buffer.
- Encode to a stream.
- Get the length of a stream by seeking to the end and then restoring the previous position.