|
PatchworkOS
a7b3d61
A non-POSIX operating system.
|
Package Length Encoding. More...
Package Length Encoding.
Data Structures | |
| struct | aml_pkg_lead_byte_t |
| PkgLeadByte structure. More... | |
Typedefs | |
| typedef uint32_t | aml_pkg_length_t |
| PkgLength structure. | |
Functions | |
| 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. | |
| 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. | |
| typedef uint32_t aml_pkg_length_t |
PkgLength structure.
Definition at line 21 of file package_length.h.
| 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.
The PkgLeadByte structure is defined as:
| ctx | The context of the TermList that this structure is part of. |
| out | The output buffer to store the lead byte. |
0. On failure, ERR and errno is set. Definition at line 10 of file package_length.c.
| 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.
The PkgLength structure is defined as PkgLength := PkgLeadByte | <pkgleadbyte bytedata> | <pkgleadbyte bytedata bytedata> | <pkgleadbyte bytedata bytedata bytedata>.
A PkgLength structure specifies the length from its own start to the end of the data for the operation/structure it is part of, as such the PkgLength includes the length of the PkgLength structure itself.
| ctx | The context of the TermList that this structure is part of. |
| out | The output buffer to store the package length. |
0. On failure, ERR and errno is set. Definition at line 34 of file package_length.c.