1 #ifndef RAPIDJSON_STRINGBUFFER_H_
2 #define RAPIDJSON_STRINGBUFFER_H_
15 template <
typename Encoding,
typename Allocator = CrtAllocator>
17 typedef typename Encoding::Ch
Ch;
27 *
stack_.template Push<Ch>() =
'\0';
28 stack_.template Pop<Ch>(1);
30 return stack_.template Bottom<Ch>();
44 memset(stream.stack_.Push<
char>(n), c, n *
sizeof(c));
49 #endif // RAPIDJSON_STRINGBUFFER_H_
const char * GetString() const
A type-unsafe stack for storing different types of data.
internal::Stack< Allocator > stack_
Represents an in-memory output stream.
static const size_t kDefaultCapacity
Concept for allocating, resizing and freeing memory block.
GenericStringBuffer(Allocator *allocator=0, size_t capacity=kDefaultCapacity)
GenericStringBuffer< UTF8<> > StringBuffer
void PutN(Stream &stream, Ch c, size_t n)
Put N copies of a character to a stream.