From 4abeefa7e8dc7310ea4ab19ee0d685fd72f42044 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 25 Jul 2024 16:07:26 -0700 Subject: [PATCH] todo: header machinery in file (file.add_block) --- src/file.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/file.rs b/src/file.rs index 6f22cf9..d1fd674 100644 --- a/src/file.rs +++ b/src/file.rs @@ -51,19 +51,19 @@ pub(crate) enum FourCC{ } #[binrw] #[brw(little)] -struct Header{ +pub struct Header{ /// Type of file - fourcc:FourCC, - /// Type version - version:u32, + pub fourcc:FourCC, + /// File format version + pub version:u32, /// Minimum data required to know the location of all streamable resources for this specific file - priming:u64, + pub priming:u64, /// uuid for this file - resource:u128, + pub resource:u128, //don't need try_calc: the struct will force field initialization anyways and it can be calculated there - block_count:u32, + pub block_count:u32, #[br(count=block_count+1)] - block_location:Vec, + pub block_location:Vec, } #[binrw]