NGL
6.5
The NCCA Graphics Library
|
Represents an in-memory input byte stream. More...
#include <memorystream.h>
Public Types | |
typedef char | Ch |
Public Member Functions | |
MemoryStream (const Ch *src, size_t size) | |
Ch | Peek () const |
Ch | Take () |
size_t | Tell () const |
Ch * | PutBegin () |
void | Put (Ch) |
void | Flush () |
size_t | PutEnd (Ch *) |
const Ch * | Peek4 () const |
Public Attributes | |
const Ch * | src_ |
Current read position. More... | |
const Ch * | begin_ |
Original head of the string. More... | |
const Ch * | end_ |
End of stream. More... | |
size_t | size_ |
Size of the stream. More... | |
Represents an in-memory input byte stream.
This class is mainly for being wrapped by EncodedInputStream or AutoUTFInputStream.
It is similar to FileReadBuffer but the source is an in-memory buffer instead of a file.
Differences between MemoryStream and StringStream:
Definition at line 34 of file memorystream.h.
typedef char MemoryStream::Ch |
Definition at line 35 of file memorystream.h.
|
inline |
Definition at line 37 of file memorystream.h.
|
inline |
Definition at line 45 of file memorystream.h.
References RAPIDJSON_ASSERT.
|
inline |
Definition at line 39 of file memorystream.h.
|
inline |
Definition at line 49 of file memorystream.h.
References size_, src_, and Tell().
Definition at line 44 of file memorystream.h.
References RAPIDJSON_ASSERT.
|
inline |
Definition at line 43 of file memorystream.h.
References RAPIDJSON_ASSERT.
|
inline |
Definition at line 46 of file memorystream.h.
References RAPIDJSON_ASSERT.
|
inline |
Definition at line 40 of file memorystream.h.
|
inline |
const Ch* MemoryStream::begin_ |
Original head of the string.
Definition at line 54 of file memorystream.h.
const Ch* MemoryStream::end_ |
End of stream.
Definition at line 55 of file memorystream.h.
size_t MemoryStream::size_ |
Size of the stream.
Definition at line 56 of file memorystream.h.
const Ch* MemoryStream::src_ |
Current read position.
Definition at line 53 of file memorystream.h.