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

Method push

nodedb-codec/src/zstd_codec.rs:199–201  ·  view source on GitHub ↗
(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

197 }
198
199 pub fn push(&mut self, data: &[u8]) {
200 self.buf.extend_from_slice(data);
201 }
202
203 pub fn len(&self) -> usize {
204 self.buf.len()

Callers 3

encode_with_levelFunction · 0.45
better_ratio_than_lz4Function · 0.45
streaming_encoderFunction · 0.45

Calls

no outgoing calls

Tested by 2

better_ratio_than_lz4Function · 0.36
streaming_encoderFunction · 0.36