Represents an in-memory input byte stream. More...
#include <memorystream.h>
Public Types | |
typedef char | Ch |
Public Member Functions | |
void | Flush () |
MemoryStream (const Ch *src, size_t size) | |
Ch | Peek () const |
const Ch * | Peek4 () const |
void | Put (Ch) |
Ch * | PutBegin () |
size_t | PutEnd (Ch *) |
Ch | Take () |
size_t | Tell () const |
Public Attributes | |
const Ch * | begin_ |
Original head of the string. More... | |
const Ch * | end_ |
End of stream. More... | |
size_t | size_ |
Size of the stream. More... | |
const Ch * | src_ |
Current read position. 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 42 of file memorystream.h.
typedef char MemoryStream::Ch |
Definition at line 44 of file memorystream.h.
|
inline |
Definition at line 46 of file memorystream.h.
|
inline |
Definition at line 72 of file memorystream.h.
|
inline |
Definition at line 50 of file memorystream.h.
|
inline |
Definition at line 83 of file memorystream.h.
|
inline |
Definition at line 68 of file memorystream.h.
|
inline |
Definition at line 63 of file memorystream.h.
|
inline |
Definition at line 76 of file memorystream.h.
|
inline |
Definition at line 54 of file memorystream.h.
|
inline |
Definition at line 58 of file memorystream.h.
const Ch* MemoryStream::begin_ |
Original head of the string.
Definition at line 89 of file memorystream.h.
const Ch* MemoryStream::end_ |
End of stream.
Definition at line 90 of file memorystream.h.
size_t MemoryStream::size_ |
Size of the stream.
Definition at line 91 of file memorystream.h.
const Ch* MemoryStream::src_ |
Current read position.
Definition at line 88 of file memorystream.h.