Trait ssbh_lib::SsbhWrite[][src]

pub trait SsbhWrite {
    fn ssbh_write<W: Write + Seek>(
        &self,
        writer: &mut W,
        data_ptr: &mut u64
    ) -> Result<()>;
fn size_in_bytes(&self) -> u64; fn alignment_in_bytes(&self) -> u64 { ... } }
Expand description

A trait for exporting types that are part of SSBH formats.

Required methods

Writes the byte representation of self to writer and update data_ptr as needed to ensure the next relative offset is correctly calculated.

The offset in bytes between successive elements in an array of this type. This should include any alignment or padding. For most types, this is simply the value of std::mem::size_of.

Provided methods

The alignment of the relative_offset for types stored in a RelPtr64.

Implementations on Foreign Types

Implementors