Module utils

Source
Expand description

Utilities used in this crate which can also be generally useful downstream.

Modules§

collections

Structs§

SliceReader
Implements ByteReader trait for a slice of bytes.

Enums§

DeserializationError
Defines errors which can occur during deserialization.
HexParseError
Defines errors which can occur during parsing of hexadecimal strings.

Traits§

ByteReader
Defines how primitive values are to be read from Self.
ByteWriter
Defines how primitive values are to be written into Self.
Deserializable
Defines how to deserialize Self from bytes.
Serializable
Defines how to serialize Self into bytes.

Functions§

bytes_to_hex_string
Renders an array of bytes as hex into a String.
hex_to_bytes
Parses a hex string into an array of bytes of known size.
uninit_vector
Returns a vector of the specified length with un-initialized memory.
word_to_hex
Converts a Word into hex.