Crate blt_utils

Source
Expand description

GitHub Build Status (branch) GitHub Test Status (branch) codecov docs.rs

§blt-utils

Byte-level transport utils

§MSRV

This crate’s Minimum Supported Rust Version is 1.60.0.

Enums§

DeserializationError
An enumeration of errors that can occur during custom deserialization.

Functions§

deserialize_f32
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_f64
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_i8
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_i16
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_i32
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_i64
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_i128
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_isize
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_string
Removes the next string value from the buffer.
deserialize_u8
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_u16
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_u32
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_u64
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_u128
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_usize
Removes the next numeric value from the buffer. If the buffer does not contain enough elements to create a numeric value, the buffer is unchanged and an error is returned.
deserialize_vec
Removes the next collection of strings from the buffer. If an error occurs for an element after the first, the buffer is left in an indeterminate state.
finalize_serialization
Prepends the length of the buffer to the buffer.
serialize_f32
Adds the given numeric value to the buffer.
serialize_f64
Adds the given numeric value to the buffer.
serialize_i8
Adds the given numeric value to the buffer.
serialize_i16
Adds the given numeric value to the buffer.
serialize_i32
Adds the given numeric value to the buffer.
serialize_i64
Adds the given numeric value to the buffer.
serialize_i128
Adds the given numeric value to the buffer.
serialize_isize
Adds the given numeric value to the buffer.
serialize_string
Appends the string representation of the given value to the buffer.
serialize_u8
Adds the given numeric value to the buffer.
serialize_u16
Adds the given numeric value to the buffer.
serialize_u32
Adds the given numeric value to the buffer.
serialize_u64
Adds the given numeric value to the buffer.
serialize_u128
Adds the given numeric value to the buffer.
serialize_usize
Adds the given numeric value to the buffer.
serialize_vec
Appends the given collection to the buffer.