Gets an 8 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 8 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
Success | P6R::eOk | The data was written or appended successfully. |
Failure | P6R::eSeek | The specified nOffset was past the end of the buffer. |
P6R::eTooBig | Reading the value from the specified offset would result in reading past the end of the buffer. |
P6R::eInvalidArg | pVal was NULL. |