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

Method new

nodedb-array/src/segment/writer.rs:25–34  ·  view source on GitHub ↗
(schema_hash: u64)

Source from the content-addressed store, hash-verified

23
24impl SegmentWriter {
25 pub fn new(schema_hash: u64) -> Self {
26 let mut buf = Vec::new();
27 SegmentHeader::new(schema_hash).encode_to(&mut buf);
28 Self {
29 schema_hash,
30 buf,
31 entries: Vec::new(),
32 finished: false,
33 }
34 }
35
36 pub fn append_sparse(&mut self, tile_id: TileId, tile: &SparseTile) -> ArrayResult<()> {
37 let mut payload = Vec::new();

Callers

nothing calls this directly

Calls 1

encode_toMethod · 0.45

Tested by

no test coverage detected