dec
Library to allow decoding of more complex values
Types
std::mem::AlignTo
std::mem::AlignTo
Aligns the cursor to the given alignment
<alignment>
: The alignment to align to
std::mem::Bytes
std::mem::Bytes
A type representing a sequence of bytes without any specific meaning
<Size>
: The size of the sequence
std::mem::Endian
std::mem::Endian
The endianness of a value
std::mem::MagicSearch
std::mem::MagicSearch
Searches for a sequence of bytes and places the given type at that address
<Magic>
: The magic sequence to search for<T>
: The type to place at the address
std::mem::Reinterpreter
std::mem::Reinterpreter
Reinterprets a value as a different one
<From>
: The type to reinterpret from<To>
: The type to reinterpret to
std::mem::Section
std::mem::Section
A Handle for a custom Section
Functions
hex::dec::demangle
hex::dec::demangle
Demangles a mangled name into a human readable name
mangled_name
: The mangled namereturn
: The demangled name
hex::dec::zlib_decompress
hex::dec::zlib_decompress
Decompresses the bytes of a pattern into a section using the zlib algorithm
pattern
: The pattern whose bytes should be decompressedsection
: The section to decompress the data intowindow_size
: The window size passed to zlibreturn
: true if successful, false otherwise
hex::dec::bzip_decompress
hex::dec::bzip_decompress
Decompresses the bytes of a pattern into a section using the bzip algorithm
pattern
: The pattern whose bytes should be decompressedsection
: The section to decompress the data intoreturn
: true if successful, false otherwise
hex::dec::lzma_decompress
hex::dec::lzma_decompress
Decompresses the bytes of a pattern into a section using the LZMA algorithm
pattern
: The pattern whose bytes should be decompressedsection
: The section to decompress the data intoreturn
: true if successful, false otherwise
hex::dec::zstd_decompress
hex::dec::zstd_decompress
Decompresses the bytes of a pattern into a section using the zstd algorithm
pattern
: The pattern whose bytes should be decompressedsection
: The section to decompress the data intoreturn
: true if successful, false otherwise
hex::dec::lz4_decompress
hex::dec::lz4_decompress
Decompresses the bytes of a pattern into a section using the lz4 algorithm
pattern
: The pattern whose bytes should be decompressedsection
: The section to decompress the data intoframe
: Whether the data is framed or notreturn
: true if successful, false otherwise
Last updated