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

Method get_array

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

Source from the content-addressed store, hash-verified

182 /// Reads an array of type `[u8; N]` from the input.
183 #[inline]
184 fn get_array<const N: usize>(&mut self) -> Result<&'de [u8; N], DecodeError> {
185 self.get_array_chunk().ok_or_else(|| DecodeError::BufferLength {
186 for_type: "[u8; _]",
187 expected: N,
188 given: self.remaining(),
189 })
190 }
191
192 /// Reads a `u8` in little endian (LE) encoding from the input.
193 ///

Callers 1

decode_recordMethod · 0.80

Implementers 1

buffer.rscrates/sats/src/buffer.rs

Calls 2

get_array_chunkMethod · 0.45
remainingMethod · 0.45

Tested by

no test coverage detected