okser::out::cbuf class

A simple output to a C-style char buffer

Example

char buffer[100];
auto output = okser::out::cbuf{buffer};

// ...

okser::serialize<bundle>(output, 100, 200, 300);
size_t length = output.size;

Public functions

void add(char value)
void add(uint8_t value)

Public variables

char* buf
size_t size

Variable documentation

size_t okser::out::cbuf::size

The number of bytes appended to the buffer so far