fix crash and clean up record data size housekeeping

This commit is contained in:
Christien Rioux
2023-09-09 13:30:48 -04:00
parent 36957d84f1
commit 853976789f
6 changed files with 103 additions and 48 deletions

View File

@@ -56,6 +56,10 @@ impl ValueData {
&self.data
}
pub fn data_size(&self) -> usize {
self.data.len()
}
pub fn total_size(&self) -> usize {
mem::size_of::<Self>() + self.data.len()
}