Gets a 64 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 64 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 offset will be automatically incremented past the data which was just read. |
- Returns
Success | P6R::eOk | The data was read. |
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. |