Expand description
Type interpretation for reading and converting bytes from file buffers
This module provides functions for safely reading different data types from byte buffers with proper bounds checking and error handling.
Enums§
- Type
Read Error - Errors that can occur during type reading operations
Functions§
- coerce_
value_ to_ type - Coerce a rule’s expected value to match the type’s signedness and width.
- read_
byte - Safely reads a single byte from the buffer at the specified offset
- read_
long - Safely reads a 32-bit integer from the buffer at the specified offset
- read_
quad - Safely reads a 64-bit integer from the buffer at the specified offset
- read_
short - Safely reads a 16-bit integer from the buffer at the specified offset
- read_
string - Safely reads a null-terminated string from the buffer at the specified offset
- read_
typed_ value - Reads and interprets bytes according to the specified
TypeKind