GenericMemoryBuffer
Engine/source/persistence/rapidjson/memorybuffer.h
Represents an in-memory output byte stream.
Public Types
char
Ch
Public Static Attributes
const size_t
Public Attributes
Public Functions
Detailed Description
Represents an in-memory output byte stream.
This class is mainly for being wrapped by EncodedOutputStream or AutoUTFOutputStream.
It is similar to FileWriteBuffer but the destination is an in-memory buffer instead of a file.
Differences between MemoryBuffer and StringBuffer:
StringBuffer has Encoding but MemoryBuffer is only a byte buffer.
StringBuffer::GetString() returns a null-terminated string. MemoryBuffer::GetBuffer() returns a buffer without terminator.
Parameters:
Allocator | type for allocating memory buffer. |
note:implements Stream concept
Public Types
typedef char Ch
Public Static Attributes
const size_t kDefaultCapacity