fn size(value: &Vec<u8>) -> (u32, &[u8], &[u8]) {
    let (key_size, elements_slice) = value.split_at(KEY_SIZE_BYTES);
    let size = as_u32_be(key_size.try_into().unwrap());
    (size, key_size, elements_slice)
}
/// returns size of elements written in this byte array and rest of data as slice
returns size of elements written in this byte array and rest of data as slice
returns size of elements written in this byte array and rest of data as slice
fn size(value: &Vec<u8>) -> (u32, &[u8], &[u8]) {
    let (key_size, elements_slice) = value.split_at(KEY_SIZE_BYTES);
    let size = as_u32_be(key_size.try_into().unwrap());
    (size, key_size, elements_slice)
}
fn size ( value : & Vec < u8 > ) -> ( u32 , & [ u8 ] , & [ u8 ] ) { let ( key_size , elements_slice ) = value . split_at ( KEY_SIZE_BYTES ) ; let size = as_u32_be ( key_size . try_into ( ) . unwrap ( ) ) ; ( size , key_size , elements_slice ) }
returns size of elements written in this byte array and rest of data as slice
returns size of elements written in this byte array and rest of data as slice
value
&Vec<u8>
value
&Vec<u8>