Wire Sysio Wire Sysion 1.0.0
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

Definition at line 64 of file memorybuffer.h.

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