Torque3D Documentation / _generateds / GenericStringBuffer

GenericStringBuffer

Engine/source/persistence/rapidjson/stringbuffer.h

Represents an in-memory output stream.

More...

Public Types

Encoding::Ch
Ch 

Public Static Attributes

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

Get the size of string in bytes in the string buffer.

Pop(size_t count)
Ch *
Push(size_t count)
Ch *
PushUnsafe(size_t count)
Put(Ch c)
Reserve(size_t count)

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()