#include <CharBufferByteSource.h>
|
| | CharBufferByteSource (const char *input, u32 length) |
| |
| virtual int | ReadByte () |
| |
| void | ChangeBuffer (const char *newBuffer, u32 bufferLength) |
| |
| void | Reset () |
| |
| | ByteSource () |
| |
| s32 | Read () |
| |
| void | Unread () |
| |
| s32 | Peek () |
| |
| virtual | ~ByteSource () |
| |
| u32 | GetBytesRead () |
| |
| bool | Scan (u64 &result) |
| |
| bool | Scan (s32 &result, Format::Type code=Format::DEC, u32 fieldWidth=U32_MAX) |
| |
| bool | Scan (u32 &result, Format::Type code=Format::DEC, u32 fieldWidth=U32_MAX) |
| |
| bool | Scan (ByteSerializable &byteSerializable, s32 argument=0) |
| |
|
bool | ScanLexDigits (u32 &digits) |
| |
|
bool | Scan (ByteSink &result, const u32 fieldWidth) |
| |
|
s32 | ScanSet (ByteSink &result, const char *setSpec) |
| |
| s32 | SkipSet (const char *setSpec) |
| |
|
s32 | ScanSetFormat (ByteSink &result, const char *&setSpec) |
| |
| bool | ScanIdentifier (ByteSink &result) |
| |
| bool | ScanHex (ByteSink &result) |
| |
| bool | ScanBinary (ByteSink &result) |
| |
| bool | ScanCamelIdentifier (ByteSink &result) |
| |
| s32 | SkipWhitespace () |
| |
|
s32 | Scanf (const char *format,...) |
| |
| s32 | Vscanf (const char *format, va_list &ap) |
| |
A ByteSource backed by a char pointer.
| MFM::CharBufferByteSource::CharBufferByteSource |
( |
const char * |
input, |
|
|
u32 |
length |
|
) |
| |
|
inline |
Constructs a new CharBufferByteSource backed by a provided char pointer. The length of readable bytes by the provided char pointer must also be provided.
- Parameters
-
| input | The char* to back this CharBufferByteSource by. This must not be NULL, else this constructor will FAIL with NULL_POINTER . |
| length | The number of readable bytes which may be read from input . |
| void MFM::CharBufferByteSource::ChangeBuffer |
( |
const char * |
newBuffer, |
|
|
u32 |
bufferLength |
|
) |
| |
|
inline |
Assigns a new char pointer to this CharBufferByteSource. Used to reconstruct this CharBufferByteSource as needed.
- Parameters
-
| newBuffer | The new char pointer which this CharBufferByteSource will point to. This must not be NULL, else will FAIL with NULL_POINTER . |
| bufferLength | The number of readable bytes which may be read from newBuffer . |
| virtual int MFM::CharBufferByteSource::ReadByte |
( |
| ) |
|
|
inlinevirtual |
| void MFM::CharBufferByteSource::Reset |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: