Parsec

ParsecGetBuffer

void *ParsecGetBuffer(Parsec *
ps,
uint32_t
key
)

Get an internal dynamically allocated buffer by 32-bit lookup key.

The return value is dynamically allocated and must be passed to ParsecFree after use. The size of the buffer should always be known in advance of calling this function.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
inkey32-bit lookup key returned by various polling functions.

Returns

NULL if the lookup key was invalid or the buffer was already retrieved, otherwise a dynamically allocated buffer. Call ParsecFree after use.