ParsecGetBuffer
void *ParsecGetBuffer(Parsec *ps,uint32_tkey)
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
Direction | Name | Description |
---|---|---|
in | ps | Parsec instance returned by ParsecInit . |
in | key | 32-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.