Electroneum
Loading...
Searching...
No Matches
memorybuffer.h File Reference
#include "stream.h"
#include "internal/stack.h"
Include dependency graph for memorybuffer.h:
This graph shows which files directly or indirectly include this file:

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.

Typedef Documentation

◆ MemoryBuffer

Definition at line 60 of file memorybuffer.h.

Function Documentation

◆ PutN()

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

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

Definition at line 64 of file memorybuffer.h.

64 {
65 std::memset(memoryBuffer.stack_.Push<char>(n), c, n * sizeof(c));
66}
RAPIDJSON_FORCEINLINE T * Push(size_t count=1)
Definition stack.h:122
internal::Stack< Allocator > stack_
Here is the call graph for this function: