risingwave_common::util::memcmp_encoding

Function calculate_encoded_size

source
pub(crate) fn calculate_encoded_size(
    ty: &DataType,
    order: OrderType,
    encoded_data: &[u8],
) -> Result<usize>
Expand description

Deserialize the data_size of input_data_type in memcmp_encoding. This function will consume the offset of deserializer then return the length (without memcopy, only length calculation).