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

Method to_bytes

nodedb/src/control/server/resp/codec.rs:114–118  ·  view source on GitHub ↗

Serialize to a new Vec.

(&self)

Source from the content-addressed store, hash-verified

112
113 /// Serialize to a new Vec.
114 pub fn to_bytes(&self) -> Vec<u8> {
115 let mut buf = Vec::with_capacity(64);
116 self.serialize(&mut buf);
117 buf
118 }
119}
120
121/// RESP2 frame parser.

Callers 15

rs256_roundtripFunction · 0.45
rs256_wrong_key_rejectedFunction · 0.45
persist_rowMethod · 0.45
propose_and_awaitMethod · 0.45
persistMethod · 0.45
apply_opMethod · 0.45
serveMethod · 0.45
send_frameMethod · 0.45
unknown_array_is_ignoredFunction · 0.45
op_keyFunction · 0.45

Calls 1

serializeMethod · 0.45

Tested by 5

rs256_roundtripFunction · 0.36
rs256_wrong_key_rejectedFunction · 0.36
unknown_array_is_ignoredFunction · 0.36
roundtripFunction · 0.36