vortex_array/arrays/varbin/compute/
uncompressed_size.rs

1use vortex_error::VortexResult;
2
3use crate::arrays::{VarBinArray, VarBinEncoding};
4use crate::compute::{UncompressedSizeFn, uncompressed_size};
5
6impl UncompressedSizeFn<&VarBinArray> for VarBinEncoding {
7    fn uncompressed_size(&self, array: &VarBinArray) -> VortexResult<usize> {
8        let offsets = uncompressed_size(array.offsets().as_ref())?;
9
10        Ok(offsets + array.bytes().len() + array.validity().uncompressed_size())
11    }
12}