Classes | Typedefs | Functions
memorybuffer.h File Reference
#include "stream.h"
#include "internal/stack.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

Definition at line 60 of file memorybuffer.h.

Function Documentation

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 }
std::void_t< T > n
internal::Stack< Allocator > stack_
Definition: memorybuffer.h:57