Module lrs::util

Utility functions.

Functions

NameDescription
all_bytes

Returns whether all bytes in a byte slice have a specified value.

equal

Returns whether the two byte slices are equal.

memchr

Returns the first occurrence of a byte in a byte slice if any.

memrchr

Returns the last occurrence of a byte in a byte slice if any.

spin

Informs the CPU that we're in a spin-wait loop.

strlen

Returns the length of a C string.