mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 03:37:47 +00:00
Use binrw padding instead of creating a temporary u32
This commit is contained in:
parent
81ffadd870
commit
f0554c8c27
1 changed files with 1 additions and 4 deletions
|
@ -76,12 +76,9 @@ pub struct IndexHashTableEntry {
|
||||||
|
|
||||||
#[br(temp)]
|
#[br(temp)]
|
||||||
#[bw(ignore)]
|
#[bw(ignore)]
|
||||||
|
#[brw(pad_after = 4)]
|
||||||
data: u32,
|
data: u32,
|
||||||
|
|
||||||
#[br(temp)]
|
|
||||||
#[bw(ignore)]
|
|
||||||
padding: u32,
|
|
||||||
|
|
||||||
#[br(calc = (data & 0b1) == 0b1)]
|
#[br(calc = (data & 0b1) == 0b1)]
|
||||||
#[bw(ignore)]
|
#[bw(ignore)]
|
||||||
pub is_synonym: bool,
|
pub is_synonym: bool,
|
||||||
|
|
Loading…
Add table
Reference in a new issue