MCPcopy Create free account
hub / github.com/apache/paimon-rust / to_serialized_bytes

Method to_serialized_bytes

crates/paimon/src/spec/binary_row.rs:99–104  ·  view source on GitHub ↗

Serialize this BinaryRow to bytes (arity prefix + data), the inverse of `from_serialized_bytes`.

(&self)

Source from the content-addressed store, hash-verified

97
98 /// Serialize this BinaryRow to bytes (arity prefix + data), the inverse of `from_serialized_bytes`.
99 pub fn to_serialized_bytes(&self) -> Vec<u8> {
100 let mut buf = Vec::with_capacity(4 + self.data.len());
101 buf.extend_from_slice(&self.arity.to_be_bytes());
102 buf.extend_from_slice(&self.data);
103 buf
104 }
105
106 pub fn arity(&self) -> i32 {
107 self.arity

Callers 5

serialized_rowFunction · 0.80
newMethod · 0.80
load_from_data_scanMethod · 0.80
prepare_commitMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected