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

Method byte_len

src/repr/src/row.rs:243–251  ·  view source on GitHub ↗

Returns the total amount of bytes used by this row.

(&self)

Source from the content-addressed store, hash-verified

241
242 /// Returns the total amount of bytes used by this row.
243 pub fn byte_len(&self) -> usize {
244 let heap_size = if self.data.spilled() {
245 self.data.len()
246 } else {
247 0
248 };
249 let inline_size = std::mem::size_of::<Self>();
250 inline_size.saturating_add(heap_size)
251 }
252
253 /// The length of the encoded row in bytes. Does not include the size of the `Row` struct itself.
254 pub fn data_len(&self) -> usize {

Callers 15

send_rowsMethod · 0.45
newMethod · 0.45
stashMethod · 0.45
inline_byte_lenMethod · 0.45
size_bytesMethod · 0.45
to_error_if_exceedsMethod · 0.45
test_range_errors_innerFunction · 0.45
round_tripFunction · 0.45
add_rowMethod · 0.45
fromMethod · 0.45

Calls 2

saturating_addMethod · 0.80
lenMethod · 0.45

Tested by 1

test_range_errors_innerFunction · 0.36