MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / as_reader

Method as_reader

crates/commitlog/src/stream/common.rs:136–138  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

134 }
135
136 pub fn as_reader(&self) -> impl io::Read + '_ {
137 io::Read::chain(&self.header[..], &self.body[..])
138 }
139
140 pub fn filled_len(&self) -> usize {
141 self.header.len() + self.body.len()

Callers 1

append_all_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected