fixups for test
This commit is contained in:
parent
22543defa8
commit
0c251f90fd
@ -284,11 +284,12 @@ impl std::error::Error for Error{}
|
|||||||
|
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug,Clone,Copy)]
|
||||||
pub struct BlockId(u32);
|
pub struct BlockId(u32);
|
||||||
|
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
|
#[derive(Debug,Clone,Copy)]
|
||||||
pub struct TimedBlockId{
|
pub struct TimedBlockId{
|
||||||
pub time:f64,
|
pub time:f64,
|
||||||
pub block_id:BlockId,
|
pub block_id:BlockId,
|
||||||
@ -296,6 +297,7 @@ pub struct TimedBlockId{
|
|||||||
|
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct FileHeader{
|
pub struct FileHeader{
|
||||||
#[brw(magic=b"qbot")]
|
#[brw(magic=b"qbot")]
|
||||||
pub file_version:u32,
|
pub file_version:u32,
|
||||||
@ -310,7 +312,7 @@ pub struct FileHeader{
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct File<R:BinReaderExt>{
|
pub struct File<R:BinReaderExt>{
|
||||||
header:FileHeader,
|
pub header:FileHeader,
|
||||||
//reference to the data
|
//reference to the data
|
||||||
data:R,
|
data:R,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user