|
Public Member Functions |
| ErrCode | Find (uint8 xWanted, uint32 &uOffset) const |
| | Returns the first offset of a byte in the buffer.
|
| ErrCode | FindLast (const uint8 xWanted, uint32 &uOffset) const |
| | Returns the last offset of a byte in the buffer.
|
| ErrCode | Read (Ptr pBuf, const uint32 uBufLen) |
| | Reads data from the buffer.
|
| ErrCode | ReadLine (TextPtr psz, const int32 nMaxLen, bool bChomp=true) |
| | Reads a line of text up to a given length.
|
| ErrCode | Reset (void) |
| | Resets the buffer to an 'empty' state.
|
| ErrCode | Write (PtrConst pBuf, uint32 uDataLen) |
| | Writes binary data into the buffer.
|
| ErrCode | WriteLine (StringPtr pstr, int32 nMaxLen=-1) |
| | Writes a line of text up to a given length.
|
| uint8 | GetAt (const uint32 uOffset) const |
| | Returns the byte at a given offset.
|
| uint32 | GetSize (void) const |
| | Returns the maximum amount of data the buffer will hold.
|
| uint32 | GetDataBytes (void) const |
| | Returns the amount of data currently in the buffer.
|
| uint32 | GetFreeBytes (void) const |
| | Returns the amount of free space left in the buffer.
|
| bool | CanRead (uint32 uWanted=1) const |
| | Determines if there is data pending in the buffer.
|
| bool | IsEmpty (void) const |
| | Fast check for data in the buffer.
|
| ErrCode | Zero (void) |
| | Sets the entire buffer to zero.
|
|
uint8 | operator[] (uint32 udx) const |
Protected Attributes |
|
uint32 | m_uBytes |
| | Count of data bytes in buffer.
|
|
uint32 | m_uRead |
| | Offset to next read location.
|
|
uint32 | m_uWrite |
| | Offset to next write location.
|
|
uint8 | m_data [BUF_LEN] |
| | Actual data buffer.
|