CciByte cpiBufferByte( int* returnCode, CciParser* parser, CciSize index);
The requested byte is returned. If an error occurs, returnCode indicates the reason for the error.
This example is taken from the sample parser file BipSampPluginParser.c (lines 61 to 75):
void advance( PARSER_CONTEXT_ST* context, CciParser* parser ){ int rc = 0; /* Advance to the next character */ context->iIndex++; /* Detect and handle the end condition */ if (context->iIndex == context->iSize) return; /* Obtain the next character from the buffer */ context->iCurrentCharacter = cpiBufferByte(&rc, parser, context->iIndex); }
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
as08270_ |