1#ifndef BYTEME_RAW_BUFFER_WRITER_HPP
2#define BYTEME_RAW_BUFFER_WRITER_HPP
27 output.reserve(reserve);
33 void write(
const unsigned char* buffer,
size_t n) {
34 output.insert(output.end(), buffer, buffer + n);
44 std::vector<unsigned char> output;
Write bytes to a raw buffer.
Definition RawBufferWriter.hpp:21
std::vector< unsigned char > & get_output()
Definition RawBufferWriter.hpp:53
void finish()
Definition RawBufferWriter.hpp:37
void write(const unsigned char *buffer, size_t n)
Definition RawBufferWriter.hpp:33
RawBufferWriter(size_t reserve=0)
Definition RawBufferWriter.hpp:26
Virtual class for writing bytes to a sink.
Definition Writer.hpp:18
virtual void write(const unsigned char *buffer, size_t n)=0
Simple byte readers and writers.