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

Writes or appends an 8 bit value into the packet.

An offset can be specified, or the P6PKTCUROFFSET constant used to append the value to the packet. This method will perform any required host to network byte order conversions before appending or writing the value into the packet.

Parameters
val[ in ] The 8 bit value to write or 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 written or appended successfully.
FailureP6R::eSeekThe specified nOffset was past the end of the buffer.
P6R::eTooBigWriting or appending the value at the specified offset would result in writing past the end of the buffer.