LZ4 Programming Tag#

Tag to handle LZ4 compressed programming data.

Modules#

Lz4ParserContext_t

Functions#

int32_t
gbl_lz4EnterProgTag(ParserContext_t *ctx)

Enter an LZ4 compressed programming tag.

int32_t
gbl_lz4ParseProgTag(ParserContext_t *ctx, void *data, size_t length, const BootloaderParserCallbacks_t *callbacks)

Parse a chunk of data from an LZ4 compressed programming tag.

int32_t
gbl_lz4ExitProgTag(ParserContext_t *ctx, const BootloaderParserCallbacks_t *callbacks)

Exit an LZ4 compressed programming tag.

size_t
gbl_lz4NumBytesRequired(ParserContext_t *ctx)

Number of bytes needed for the next stage of parsing.

Function Documentation#

gbl_lz4EnterProgTag#

int32_t gbl_lz4EnterProgTag (ParserContext_t * ctx)

Enter an LZ4 compressed programming tag.

Parameters
N/Actx

Parser context

Returns

  • Error code


Definition at line 152 of file platform/bootloader/parser/compression/btl_decompress_lz4.h

gbl_lz4ParseProgTag#

int32_t gbl_lz4ParseProgTag (ParserContext_t * ctx, void * data, size_t length, const BootloaderParserCallbacks_t * callbacks)

Parse a chunk of data from an LZ4 compressed programming tag.

Parameters
N/Actx

Parser context

N/Adata

Input data to parse

N/Alength

Length of data

N/Acallbacks

Callbacks to call with parsed data

Returns

  • Error code


Definition at line 163 of file platform/bootloader/parser/compression/btl_decompress_lz4.h

gbl_lz4ExitProgTag#

int32_t gbl_lz4ExitProgTag (ParserContext_t * ctx, const BootloaderParserCallbacks_t * callbacks)

Exit an LZ4 compressed programming tag.

Parameters
N/Actx

Parser context

N/Acallbacks

Callbacks to call with parsed data

Returns

  • Error code


Definition at line 175 of file platform/bootloader/parser/compression/btl_decompress_lz4.h

gbl_lz4NumBytesRequired#

size_t gbl_lz4NumBytesRequired (ParserContext_t * ctx)

Number of bytes needed for the next stage of parsing.

Parameters
N/Actx

Parser context

Returns

  • Number of bytes required


Definition at line 184 of file platform/bootloader/parser/compression/btl_decompress_lz4.h