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); }
関連概念
ユーザー定義のパーサー
ユーザー定義拡張機能
関連タスク
C でのパーサーの作成
関連資料
cpiAppendToBuffer
cpiBufferPointer
cpiBufferSize
パーサー・ユーティリティー関数
注意 |
商標 |
ダウンロード |
ライブラリー |
技術サポート |
フィードバック
![]() ![]() |
as08270_ |