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

Method decode_internal

crates/commitlog/src/commit.rs:50–56  ·  view source on GitHub ↗
(reader: R, v: Version)

Source from the content-addressed store, hash-verified

48 }
49
50 fn decode_internal<R: Read>(reader: R, v: Version) -> io::Result<Option<Self>> {
51 use Version::*;
52 match v {
53 V0 => Self::decode_v0(reader),
54 V1 => Self::decode_v1(reader),
55 }
56 }
57
58 fn decode_v0<R: Read>(mut reader: R) -> io::Result<Option<Self>> {
59 let mut hdr = [0; Self::LEN - 8];

Callers

nothing calls this directly

Calls 7

decode_u32Function · 0.85
invalid_dataFunction · 0.85
newFunction · 0.50
OkFunction · 0.50
ErrFunction · 0.50
kindMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected