Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IIoBuffer::append ( const P6UINT8 pBuffer,
P6UINT32  cBuffer,
const P6UINT32  nOffset,
P6UINT32 pUsed 
)
pure virtual

Appends the specified data to the packet, begining at the current packet offset and increments the current offset by the number of bytes that were appended.

Parameters
pBuffer[ in ] A pointer to P6UINT8 buffer containing the data to append.
cBuffer[ in ] The number of bytes to append,
nOffset[ in ] The offset at which to write the value. P6PKTCUROFFSET can be specified to append this value at the current offset. The current offset will be automatically incremented past the data which was just appended.
pUsed[ out ] The address of an P6UINT32 in which to place the number of bytes used in the packet after the operation completes. This may be set to NULL if the information is not needed.
Returns
SuccessP6R::eOkThe data was appended successfully.
FailureP6R::eNotInitialized/td>The I/O buffer has not been succesfully initalized.
P6R::eTooBigAppending the specified data at the specified offset would result in writing past the end of the buffer.
P6R::eInvalidArgpszString was NULL.
P6R::eSeekThe offset specified in nOffset is past the end of the buffer.