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

Method chunks

crates/table/src/var_len.rs:283–285  ·  view source on GitHub ↗

Chunks `bytes` into an iterator where each element fits into a granule.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

281
282 /// Chunks `bytes` into an iterator where each element fits into a granule.
283 pub fn chunks(bytes: &[u8]) -> impl DoubleEndedIterator<Item = &[u8]> {
284 bytes.chunks(Self::DATA_SIZE)
285 }
286
287 /// Returns the data from the var-len object in this granule.
288 pub fn data(&self) -> &[u8] {

Callers 3

mainFunction · 0.80
eq_strFunction · 0.80

Calls

no outgoing calls

Tested by 1