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

Function decode

nodedb/src/control/catalog_entry/codec.rs:18–22  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

16}
17
18pub fn decode(bytes: &[u8]) -> Result<CatalogEntry, Error> {
19 zerompk::from_msgpack(bytes).map_err(|e| Error::Config {
20 detail: format!("catalog entry decode: {e}"),
21 })
22}

Callers 15

execute_plan_innerMethod · 0.50
roundtrip_put_collectionFunction · 0.50
roundtrip_put_sequenceFunction · 0.50
write_request_roundtripFunction · 0.50
read_request_roundtripFunction · 0.50
handle_mgetFunction · 0.50
handle_getsetFunction · 0.50
handle_scanFunction · 0.50
handle_keysFunction · 0.50
scan_all_entriesFunction · 0.50

Calls

no outgoing calls

Tested by 9

roundtrip_put_collectionFunction · 0.40
roundtrip_put_sequenceFunction · 0.40
write_request_roundtripFunction · 0.40
read_request_roundtripFunction · 0.40
do_handshakeFunction · 0.40
connect_and_handshakeFunction · 0.40