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

Function decode_u32

crates/commitlog/src/commit.rs:388–392  ·  view source on GitHub ↗
(mut read: R)

Source from the content-addressed store, hash-verified

386}
387
388fn decode_u32<R: Read>(mut read: R) -> io::Result<u32> {
389 let mut buf = [0; 4];
390 read.read_exact(&mut buf)?;
391 Ok(u32::from_le_bytes(buf))
392}
393
394fn decode_header_error(e: DecodeError, field: &str) -> io::Error {
395 invalid_data(format!("failed to decode commit header field '{field}': {e}"))

Callers 1

decode_internalMethod · 0.85

Calls 1

OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…