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

Gets a 32 bit value from the specified offset or from the current offset.

An offset can be specified, or the P6PKTCUROFFSET constant used to retrieve the value from the current offset. This method will perform any required network to host byte order conversions before returning the value.

Parameters
pVal[ out ] The 32 bit value to read.
nOffset[ in ] The offset at which to read the value from. P6PKTCUROFFSET can be specified to read this value from the current offset. The current ffset will be automatically incremented past the data which was just read.
Returns
SuccessP6R::eOkThe data was read.
FailureP6R::eSeekThe specified nOffset was past the end of the buffer.
P6R::eTooBigReading the value from the specified offset would result in reading past the end of the buffer.
P6R::eInvalidArgpVal was NULL.