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

Method append_binary

src/dpp/etf.cpp:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void etf_parser::append_binary(etf_buffer *b, const char *bytes, size_t size) {
167 unsigned char buf[5];
168 buf[0] = ett_binary;
169
170 store_32_bits(buf + 1, size);
171 buffer_write(b, (const char *)buf, 5);
172 buffer_write(b, (const char *)bytes, size);
173}
174
175void etf_parser::append_string(etf_buffer *b, const char *bytes, size_t size) {
176 unsigned char buf[3];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected