|
Public Member Functions |
|
| HMem (PtrConst pData, uint32 uSize) throw () |
| ErrCode | Zero (void) |
| | Zeroes the buffer, i.e. sets all content bytes to zero (0x00).
|
| uint8 | GetAt (uint32 udx) const |
| | Returns the byte at a given offset, or zero if offset is out of bounds.
|
| ErrCode | SetAt (uint32 udx, uint8 xVal) |
| | Sets the byte at a given offset.
|
| ErrCode | SetAt (uint32 udx, PtrConst pData, uint32 uBytes) |
| | Sets a series of bytes at a given offset.
|
|
| operator PtrDataConst () const |
|
uint8 & | operator[] (uint32 udx) throw (HError) |
|
uint8 | operator[] (uint32 udx) const throw (HError) |
|
HMem & | operator= (HMem const &rhs) throw () |
Static Public Member Functions |
| static uint32 | GetSize (void) |
| | Returns the size of the buffer, or zero if non-existent.
|
Protected Member Functions |
| ErrCode | assign (PtrData pData, uint32 uBytes) |
| | Copies data into the buffer.
|
| bool | validIndex (const uint32 udx) const |
| | Tests an index (offset) value for validity.
|
| bool | validPtr (PtrConst pData) const |
| | Tests a data pointer value for validity.
|
Protected Attributes |
|
uint8 | m_buffer [BUFFER_SIZE] |
| | data buffer
|