magic
Types
type::Magic
type::Magicstruct Magic<auto ExpectedValue> { ... } [[sealed, format]];Functions
type::escape_bytes
type::escape_bytesfn escape_bytes( value);Last updated
Types used to parse and enforce specific magic numbers
type::MagicA Magic number. Throws an error if the magic number does not match the expected value
<ExpectedValue>: A string representing the expected value
struct Magic<auto ExpectedValue> { ... } [[sealed, format]];type::escape_bytesEscapes all bytes in a string to only contain printable characters. All non-printable bytes will be transformed to sequences in the \xFF form
value: Byte array to escape
return: Escaped string
fn escape_bytes( value);Last updated