24 if (out->
byteDataCount != 0 && ((pkgLeadByte >> 4) & 0x03) != 0)
62 length |= ((
uint32_t)
byte) << (4 + i * 8);
66 if (length > (1ULL << 28))
#define AML_DEBUG_ERROR(ctx, format,...)
Macro to simplify calling aml_debug_error() with the current function name.
uint64_t aml_byte_data_read(aml_term_list_ctx_t *ctx, uint8_t *out)
Read a ByteData structure from the AML stream.
uint32_t aml_pkg_length_t
PkgLength structure.
uint64_t aml_pkg_length_read(aml_term_list_ctx_t *ctx, aml_pkg_length_t *out)
Reads a PkgLength structure from the AML byte stream.
uint64_t aml_pkg_lead_byte_read(aml_term_list_ctx_t *ctx, aml_pkg_lead_byte_t *out)
Reads a PkgLeadByte structure from the AML byte stream.
#define ERANGE
Math result not representable.
#define errno
Error number variable.
#define EILSEQ
Illegal byte sequence.
#define ERR
Integer error value.
uint8_t byteDataCount
Amount of ByteData structures that come after the lead byte.
uint8_t leastSignificantNybble
Least significant nybble of the package length.
Context for reading a TermList.