GenericStringBuffer
Engine/source/persistence/rapidjson/stringbuffer.h
Represents an in-memory output stream.
Public Types
Encoding::Ch
Ch
Public Static Attributes
const size_t
Public Attributes
Public Functions
GenericStringBuffer(Allocator * allocator, size_t capacity)
size_t
Get the length of string in Ch in the string buffer.
size_t
GetSize()
Get the size of string in bytes in the string buffer.
Ch *
PushUnsafe(size_t count)
Private Functions
Detailed Description
Represents an in-memory output stream.
Parameters:
Encoding | Encoding of the stream. |
Allocator | type for allocating memory buffer. |
note:implements Stream concept
Public Types
typedef Encoding::Ch Ch
Public Static Attributes
const size_t kDefaultCapacity
Public Attributes
internal::Stack< Allocator > stack_
Public Functions
GenericStringBuffer(Allocator * allocator, size_t capacity)
Clear()
Flush()
GetLength()
Get the length of string in Ch in the string buffer.
GetSize()
Get the size of string in bytes in the string buffer.
GetString()
Pop(size_t count)
Push(size_t count)
PushUnsafe(size_t count)
Put(Ch c)
PutUnsafe(Ch c)
Reserve(size_t count)
ShrinkToFit()
Private Functions
GenericStringBuffer(const GenericStringBuffer & )
operator=(const GenericStringBuffer & )