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

Method wire_size

nodedb-wal/src/temporal_purge.rs:80–82  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

78 }
79
80 pub fn wire_size(&self) -> usize {
81 1 + 4 + self.name.len() + 8 + 8
82 }
83
84 pub fn to_bytes(&self) -> Result<Vec<u8>> {
85 let name_bytes = self.name.as_bytes();

Callers 1

to_bytesMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected