Crate kstd

source · []

Modules

Macros

Reads a single 16-bit integer from the given source. Uses big endian.
Reads a single 32-bit integer from the given source. Uses big endian.
Reads a single 64-bit integer from the given source. Uses big endian.
Reads exactly [$count] bytes from the [$source] and stores them in an array of size [$count]. This macro evaluates to that array.
Reads a single 16-bit integer from the given source. Uses little endian.
Reads a single 32-bit integer from the given source. Uses little endian.
Reads a single 64-bit integer from the given source. Uses little endian.
Reads a null-terminated ASCII string from the given source. If the string is not null-terminated within [$count] bytes, this will evaluate to a string with all [$count] bytes. The string is created with [String::from_utf8_lossy].
Reads a single byte from the given source.