Crate kstd

Source

Modules§

collections
io
path
sync

Macros§

read_be_u16
Reads a single 16-bit integer from the given source. Uses big endian.
read_be_u32
Reads a single 32-bit integer from the given source. Uses big endian.
read_be_u64
Reads a single 64-bit integer from the given source. Uses big endian.
read_bytes
Reads exactly [$count] bytes from the [$source] and stores them in an array of size [$count]. This macro evaluates to that array.
read_le_u16
Reads a single 16-bit integer from the given source. Uses little endian.
read_le_u32
Reads a single 32-bit integer from the given source. Uses little endian.
read_le_u64
Reads a single 64-bit integer from the given source. Uses little endian.
read_null_terminated_string
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].
read_u8
Reads a single byte from the given source.