WebSphere Message Brokers
File: as08260_
Writer: Lorraine Waitt

Reference topic

This build: July 31, 2007 21:38:02

cpiAppendToBuffer

Purpose

Appends data to the buffer containing the bit stream representation of a message, for the specified parser object.

Syntax

void cpiAppendToBuffer(
  int*        returnCode,
  CciParser*  parser,
  CciByte*    data,
  CciSize     length);

Parameters

returnCode
Receives the return code from the function (output).
Possible return codes are:
  • CCI_SUCCESS
  • CCI_EXCEPTION
  • CCI_INV_PARSER_OBJECT
  • CCI_INV_DATA_POINTER
  • CCI_INV_LENGTH
parser
Specifies the address of the parser object (input).
data
The address of the data to be appended to the buffer (input).
length
The size in bytes of the data to be appended to the buffer (input).

Return values

None. If an error occurs, returnCode indicates the reason for the error.

Sample

This example is taken from the sample parser file BipSampPluginParser.c (line 634):

cpiAppendToBuffer(&rc, parser, (char *)"Some test data", 14);
Related concepts
User-defined parsers
User-defined extensions overview
Related tasks
Creating a parser in C
Related reference
cpiBufferByte
cpiBufferPointer
cpiBufferSize
C parser utility functions
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:38:02

as08260_ This topic's URL is: