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.
fn size_in_bytes(&self) -> u64
[src]
fn size_in_bytes(&self) -> u64
[src]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
fn alignment_in_bytes(&self) -> u64
[src]
fn alignment_in_bytes(&self) -> u64
[src]The alignment of the relative_offset for types stored in a RelPtr64.