MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / append_string

Method append_string

src/dpp/etf.cpp:175–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void etf_parser::append_string(etf_buffer *b, const char *bytes, size_t size) {
176 unsigned char buf[3];
177 buf[0] = ett_string;
178
179 store_16_bits(buf + 1, size);
180 buffer_write(b, (const char *)buf, 3);
181 buffer_write(b, (const char *)bytes, size);
182}
183
184void etf_parser::append_tuple_header(etf_buffer *b, size_t size) {
185 if (size < 256) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected