MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / read_byte_array

Function read_byte_array

src/repr/src/row.rs:1322–1326  ·  view source on GitHub ↗
(data: &mut &[u8])

Source from the content-addressed store, hash-verified

1320}
1321
1322pub(super) fn read_byte_array<const N: usize>(data: &mut &[u8]) -> [u8; N] {
1323 let (prev, next) = data.split_first_chunk().unwrap();
1324 *data = next;
1325 *prev
1326}
1327
1328pub(super) fn read_date(data: &mut &[u8]) -> Date {
1329 let days = i32::from_le_bytes(read_byte_array(data));

Callers 6

read_untagged_bytesFunction · 0.85
read_lengthed_datumFunction · 0.85
read_dateFunction · 0.85
read_naive_dateFunction · 0.85
read_timeFunction · 0.85
read_datumFunction · 0.85

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected