LZMA Programming Tag#
Tag to handle LZMA compressed programming data.
Functions#
Enter an LZMA compressed programming tag.
Parse a chunk of data from an LZMA compressed programming tag.
Exit an LZMA compressed programming tag.
Number of bytes needed for next stage of parsing.
Macros#
The maximum size of the array holding probability model counters.
The maximum size of the dictionary.
Function Documentation#
gbl_lzmaEnterProgTag#
int32_t gbl_lzmaEnterProgTag (ParserContext_t * ctx)
Enter an LZMA compressed programming tag.
Type | Direction | Argument Name | Description |
---|---|---|---|
ParserContext_t * | N/A | ctx | Parser context |
Returns
Error code
85
of file platform/bootloader/parser/compression/btl_decompress_lzma.h
gbl_lzmaParseProgTag#
int32_t gbl_lzmaParseProgTag (ParserContext_t * ctx, void * data, size_t length, const BootloaderParserCallbacks_t * callbacks)
Parse a chunk of data from an LZMA compressed programming tag.
Type | Direction | Argument Name | Description |
---|---|---|---|
ParserContext_t * | N/A | ctx | Parser context |
void * | N/A | data | Input data to parse |
size_t | N/A | length | Length of data |
const BootloaderParserCallbacks_t * | N/A | callbacks | Callbacks to call with parsed data |
Returns
Error code
96
of file platform/bootloader/parser/compression/btl_decompress_lzma.h
gbl_lzmaExitProgTag#
int32_t gbl_lzmaExitProgTag (ParserContext_t * ctx, const BootloaderParserCallbacks_t * callbacks)
Exit an LZMA compressed programming tag.
Type | Direction | Argument Name | Description |
---|---|---|---|
ParserContext_t * | N/A | ctx | Parser context |
const BootloaderParserCallbacks_t * | N/A | callbacks | Callbacks to call with parsed data |
Returns
Error code
108
of file platform/bootloader/parser/compression/btl_decompress_lzma.h
gbl_lzmaNumBytesRequired#
size_t gbl_lzmaNumBytesRequired (ParserContext_t * ctx)
Number of bytes needed for next stage of parsing.
Type | Direction | Argument Name | Description |
---|---|---|---|
ParserContext_t * | N/A | ctx | Parser context |
Returns
Number of bytes required
117
of file platform/bootloader/parser/compression/btl_decompress_lzma.h