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

Method write_bytes

crates/table/src/bflatn_to.rs:436–439  ·  view source on GitHub ↗

Write `bytes: &[u8; N]` starting at the current offset and advance the offset by `N`.

(&mut self, bytes: &[u8; N])

Source from the content-addressed store, hash-verified

434 /// Write `bytes: &[u8; N]` starting at the current offset
435 /// and advance the offset by `N`.
436 fn write_bytes<const N: usize>(&mut self, bytes: &[u8; N]) {
437 self.fixed_buf[range_move(0..N, self.curr_offset)].copy_from_slice(bytes);
438 self.curr_offset += N;
439 }
440
441 /// Write a `u8` to the fixed buffer and advance the `curr_offset`.
442 fn write_u8(&mut self, val: u8) {

Callers 13

write_u8Method · 0.45
write_u16Method · 0.45
write_i16Method · 0.45
write_u32Method · 0.45
write_i32Method · 0.45
write_u64Method · 0.45
write_i64Method · 0.45
write_u128Method · 0.45
write_i128Method · 0.45
write_u256Method · 0.45
write_i256Method · 0.45
write_f32Method · 0.45

Calls 1

range_moveFunction · 0.85

Tested by

no test coverage detected