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

Method as_bytes

src/sql-server-util/src/cdc.rs:544–552  ·  view source on GitHub ↗

Return the underlying byte slice for this [`Lsn`].

(&self)

Source from the content-addressed store, hash-verified

542
543 /// Return the underlying byte slice for this [`Lsn`].
544 pub fn as_bytes(&self) -> [u8; 10] {
545 let mut raw: [u8; Self::SIZE] = [0; 10];
546
547 raw[0..4].copy_from_slice(&self.vlf_id.to_be_bytes());
548 raw[4..8].copy_from_slice(&self.block_id.to_be_bytes());
549 raw[8..].copy_from_slice(&self.record_id.to_be_bytes());
550
551 raw
552 }
553
554 /// Increment this [`Lsn`].
555 ///

Callers 15

compile_protoFunction · 0.45
plan_copy_to_exprFunction · 0.45
extract_byte_param_valueFunction · 0.45
max_query_result_sizeMethod · 0.45
max_result_sizeMethod · 0.45
test_caseFunction · 0.45
increment_lsnFunction · 0.45
get_changes_ascFunction · 0.45
cleanup_change_tableFunction · 0.45
get_ddl_historyFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_caseFunction · 0.36
increment_lsnFunction · 0.36
get_changes_ascFunction · 0.36
cleanup_change_tableFunction · 0.36
get_ddl_historyFunction · 0.36
emit_strMethod · 0.36