mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-15 21:00:03 +02:00
16 lines
277 B
Rust
16 lines
277 B
Rust
use binrw::BinRead;
|
|
|
|
#[derive(BinRead)]
|
|
pub struct Header {
|
|
_magic_bytes: [u8; 6],
|
|
pub entry_count: u16,
|
|
pub file_size: u32,
|
|
}
|
|
|
|
#[derive(BinRead)]
|
|
pub struct Entry {
|
|
pub entry_type: u16,
|
|
pub entry_size: u32,
|
|
_unk_flag: u8,
|
|
pub encryption_flag: u8,
|
|
} |