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

Method decode_binary

src/dpp/etf.cpp:453–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453json etf_parser::decode_binary() {
454 const auto length = read_32_bits();
455 const char* str = read_string(length);
456 if (str == NULL) {
457 return json();
458 }
459 json j = std::string(str, length);
460 return j;
461}
462
463json etf_parser::decode_string() {
464 const auto length = read_16_bits();

Callers

nothing calls this directly

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected