1#ifndef PROTOZERO_BUFFER_TMPL_HPP
2#define PROTOZERO_BUFFER_TMPL_HPP
29struct buffer_customization {
37 static std::size_t size(
const std::string* buffer);
46 static void append(std::string* buffer,
const char* data, std::size_t count);
54 static void append_zeros(std::string* buffer, std::size_t count);
65 static void resize(std::string* buffer, std::size_t size);
75 static void reserve_additional(std::string* buffer, std::size_t size);
87 static void erase_range(std::string* buffer, std::size_t from, std::size_t to);
98 static char* at_pos(std::string* buffer, std::size_t pos);
106 static void push_back(std::string* buffer,
char ch);
All parts of the protozero header-only library are in this namespace.
Definition basic_pbf_builder.hpp:24