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

Method get_array_chunk

crates/sats/src/buffer.rs:168–170  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

166 /// Reads and returns a chunk of `.len() = N` as an array, advancing the cursor.
167 #[inline]
168 fn get_array_chunk<const N: usize>(&mut self) -> Option<&'de [u8; N]> {
169 self.get_chunk(N)?.try_into().ok()
170 }
171
172 /// Reads and returns a byte slice of `.len() = size` advancing the cursor.
173 #[inline]

Callers

nothing calls this directly

Implementers 1

buffer.rscrates/sats/src/buffer.rs

Calls 3

try_intoMethod · 0.80
get_chunkMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected