TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
memorybuffer.h File Reference
#include "rapidjson.h"
#include "internal/stack.h"
+ Include dependency graph for memorybuffer.h:

Go to the source code of this file.

Classes

struct  GenericMemoryBuffer< Allocator >
 Represents an in-memory output byte stream. More...
 

Typedefs

typedef GenericMemoryBuffer MemoryBuffer
 

Functions

template<>
void PutN (MemoryBuffer &memoryBuffer, char c, size_t n)
 Implement specialized version of PutN() with memset() for better performance. More...
 

Typedef Documentation

Function Documentation

template<>
void PutN ( MemoryBuffer memoryBuffer,
char  c,
size_t  n 
)
inline

Implement specialized version of PutN() with memset() for better performance.

64  {
65  std::memset(memoryBuffer.stack_.Push<char>(n), c, n * sizeof(c));
66 }
internal::Stack< Allocator > stack_
Definition: memorybuffer.h:57