Returns the total amount of bytes used by this row.
(&self)
| 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 { |