MCPcopy Create free account
hub / github.com/bcndev/bytecoin / KVBinaryOutputStream

Method KVBinaryOutputStream

src/seria/KVBinaryOutputStream.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66} // namespace
67
68KVBinaryOutputStream::KVBinaryOutputStream(common::IOutputStream &target) : ISeria(false, false), m_target(target) {
69 KVBinaryStorageBlockHeader hdr{
70 PORTABLE_STORAGE_SIGNATUREA, PORTABLE_STORAGE_SIGNATUREB, PORTABLE_STORAGE_FORMAT_VER};
71 write_pod(m_target, hdr.m_signature_a);
72 write_pod(m_target, hdr.m_signature_b);
73 m_target.write(&hdr.m_ver, 1);
74}
75
76void KVBinaryOutputStream::object_key(common::StringView name, bool optional) {
77 invariant(!m_next_key.data(), "");

Callers

nothing calls this directly

Calls 2

write_podFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected