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

Method encoded_len

crates/commitlog/src/commit.rs:155–157  ·  view source on GitHub ↗

Length in bytes of this commit when written to the log via [`Self::write`].

(&self)

Source from the content-addressed store, hash-verified

153
154 /// Length in bytes of this commit when written to the log via [`Self::write`].
155 pub fn encoded_len(&self) -> usize {
156 Self::FRAMING_LEN + self.records.len()
157 }
158
159 /// Serialize and write `self` to `out`.
160 ///

Callers 5

commitMethod · 0.80
reset_to_internalFunction · 0.80
fromMethod · 0.80
commit_roundtripFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by 2

commit_roundtripFunction · 0.64