Expand description
Kafka length-prefixed byte payloads.
This module handles opaque bytes only. UTF-8 validation belongs in
crate::string.
Re-exports§
pub use self::error::BytesError;pub use self::error::BytesErrorKind;
Modules§
- error
- Error types for
crate::bytes_io.
Functions§
- bytes_
len - Encoded length of non-flexible bytes (
i32length prefix). - compact_
bytes_ len - Encoded length of compact bytes (unsigned varint of
len + 1). - compact_
nullable_ bytes_ len - Encoded length of nullable compact bytes.
- nullable_
bytes_ len - Encoded length of nullable non-flexible bytes.
- read_
bytes - Read non-flexible bytes (
i32length prefix). - read_
compact_ bytes - Read compact bytes (unsigned varint of
len + 1). - read_
compact_ nullable_ bytes - Read nullable compact bytes (unsigned varint,
0= null). - read_
nullable_ bytes - Read nullable non-flexible bytes (
i32,-1= null). - write_
bytes - Write non-flexible bytes (
i32length prefix). - write_
compact_ bytes - Write compact bytes (unsigned varint of
len + 1). - write_
compact_ nullable_ bytes - Write nullable compact bytes (unsigned varint,
0= null). - write_
nullable_ bytes - Write nullable non-flexible bytes (
i32,-1= null).
Type Aliases§
- Result
- Result alias for raw bytes read operations.