LZ4 Programming TagPlugin > Image Parser > GBL Parser > Custom GBL Tags

Description

Tag to handle LZ4 compressed programming data.

Data Structures

struct Lz4ParserContext_t
LZ4 Compressed Programming GBL Tag Parser Context.

Functions

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

Function Documentation

int32_t gbl_lz4EnterProgTag ( ParserContext_t * ctx )

Enter an LZ4 compressed programming tag.

Parameters
ctx Parser context
Returns
Error code
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
ctx Parser context
data Input data to parse
length Length of data
callbacks Callbacks to call with parsed data
Returns
Error code
int32_t gbl_lz4ExitProgTag ( ParserContext_t * ctx,
const BootloaderParserCallbacks_t * callbacks
)

Exit an LZ4 compressed programming tag.

Parameters
ctx Parser context
callbacks Callbacks to call with parsed data
Returns
Error code
size_t gbl_lz4NumBytesRequired ( ParserContext_t * ctx )

Number of bytes needed for the next stage of parsing.

Parameters
ctx Parser context
Returns
Number of bytes required