MCPcopy Create free account
hub / github.com/PDAL/PDAL / addEncoded

Function addEncoded

pdal/Metadata.hpp:447–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 { return MetadataNode(m_impl->addList(node.m_impl)); }
446
447 MetadataNode addEncoded(const std::string& name,
448 const unsigned char *buf, size_t size,
449 const std::string& descrip = std::string())
450 {
451 MetadataNodeImplPtr impl = m_impl->add(name);
452 impl->setValue(Utils::base64_encode(buf, size));
453 impl->m_type = "base64Binary";
454 impl->m_descrip = descrip;
455 return MetadataNode(impl);
456 }
457
458 MetadataNode addListEncoded(const std::string& name,
459 const unsigned char *buf, size_t size,

Callers

nothing calls this directly

Calls 4

base64_encodeFunction · 0.85
MetadataNodeFunction · 0.70
addMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected