pub struct Header { /* private fields */ }Expand description
The header of a PAK archive describes where the table is located in the file and its size.
Implementations§
Source§impl Header
impl Header
pub fn new(table_offset: u32, table_size: u32) -> Self
Sourcepub async fn write<R>(&self, writer: &mut R) -> Result<()>where
R: AsyncWrite + Unpin,
pub async fn write<R>(&self, writer: &mut R) -> Result<()>where
R: AsyncWrite + Unpin,
Writes the header to a (buffered) writer.
Sourcepub fn write_sync<R>(&self, writer: &mut R) -> Result<()>where
R: Write,
pub fn write_sync<R>(&self, writer: &mut R) -> Result<()>where
R: Write,
Writes the header to a (buffered) writer.
Sourcepub fn table_offset(&self) -> u32
pub fn table_offset(&self) -> u32
Where the table is stored in the PAK file
Sourcepub fn table_size(&self) -> u32
pub fn table_size(&self) -> u32
The size of the table, including entries
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more