CciByte cpiBufferByte( int* returnCode, CciParser* parser, CciSize index);
要求されたバイトが戻されます。 エラーが発生した場合、returnCode がエラーの理由を示します。
この例は、サンプル・パーサー・ファイル BipSampPluginParser.c から取られています (61 行から 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); }