MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / write_kv_raw

Function write_kv_raw

nodedb-query/src/msgpack_scan/writer.rs:152–155  ·  view source on GitHub ↗
(buf: &mut Vec<u8>, key: &str, raw_value: &[u8])

Source from the content-addressed store, hash-verified

150/// into a new map without decode/re-encode.
151#[inline]
152pub fn write_kv_raw(buf: &mut Vec<u8>, key: &str, raw_value: &[u8]) {
153 write_str(buf, key);
154 buf.extend_from_slice(raw_value);
155}
156
157/// Write a key-value pair (string key, null value).
158#[inline]

Callers 1

Calls 1

write_strFunction · 0.70

Tested by 1