wow_wmo/
chunk_header.rs

1use crate::chunk_id::ChunkId;
2use binrw::{BinRead, BinWrite};
3
4/// A chunk header containing the ID and size
5#[derive(Debug, Clone, Copy, BinRead, BinWrite)]
6#[br(little)]
7#[bw(little)]
8pub struct ChunkHeader {
9    /// The chunk identifier
10    pub id: ChunkId,
11    /// The size of the chunk data (excluding the header)
12    pub size: u32,
13}