pub fn value_slice(cursor: &mut Cursor<impl AsRef<[u8]>>) -> Result<&[u8]>