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

Method as_buf

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

Source from the content-addressed store, hash-verified

130
131impl CommitBuf {
132 pub fn as_buf(&self) -> impl bytes::Buf + '_ {
133 bytes::Buf::chain(&self.header[..], &self.body[..])
134 }
135
136 pub fn as_reader(&self) -> impl io::Read + '_ {
137 io::Read::chain(&self.header[..], &self.body[..])

Callers 1

append_all_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected