This function gets a pointer to the buffer containing the bit stream representation of the input message, for the specified parser object.
const CciByte* cpiBufferPointer(
int* returnCode,
CciParser* parser);
If successful, the address of the buffer is returned. Otherwise, a value of zero (CCI_NULL_ADDR) is returned, and returnCode indicates the reason for the error.
This example is taken from the sample parser file BipSampPluginParser.c:
int cpiParseBufferEncoded(
CciParser* parser,
CciContext* context,
int encoding,
int ccsid
){
PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ;
int rc;
/* Get a pointer to the message buffer and set the offset */
pc->iBuffer = (void *)cpiBufferPointer(&rc;, parser);
pc->iIndex = 0;