1
2
3
4
5
6
pub fn data<'a>(packedfile: &blender::Object<'a>) -> blender::Result<&'a [u8]>{
    let seek = *packedfile.get::<u32>("seek")? as usize;
    let data_size = *packedfile.get::<u32>("size")? as usize;
    let data = packedfile.get_data_slice::<u8>("data", data_size)?;
    Ok(&data[seek..])
}