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

Method write

crates/table/src/table.rs:788–791  ·  view source on GitHub ↗
(dst: &mut [u8], offset: u16, bytes: [u8; N])

Source from the content-addressed store, hash-verified

786 let fixed_buf = self.inner.pages[ptr.page_index()].get_fixed_row_data_mut(ptr.page_offset(), fixed_row_size);
787
788 fn write<const N: usize>(dst: &mut [u8], offset: u16, bytes: [u8; N]) {
789 let offset = offset as usize;
790 dst[offset..offset + N].copy_from_slice(&bytes);
791 }
792
793 match col_typ {
794 PrimitiveType::I8 => write(fixed_buf, elem_ty.offset, (seq_val as i8).to_le_bytes()),

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected