pub struct Unk {
pub unk1: Vec<UnkInner>,
pub data_length: u32,
pub data_offset: u32,
pub unks: [u32; 8],
}Fields§
§unk1: Vec<UnkInner>§data_length: u32§data_offset: u32The offset into buffer.
unks: [u32; 8]Trait Implementations§
source§impl BinRead for Unk
impl BinRead for Unk
source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<Self>
source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moresource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moresource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moresource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moresource§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl Xc3Write for Unk
impl Xc3Write for Unk
§type Offsets<'offsets> = UnkOffsets<'offsets>
type Offsets<'offsets> = UnkOffsets<'offsets>
The type storing offset data to be used in Xc3WriteOffsets.
source§fn xc3_write<W: Write + Seek>(
&self,
writer: &mut W,
data_ptr: &mut u64
) -> Xc3Result<Self::Offsets<'_>>
fn xc3_write<W: Write + Seek>( &self, writer: &mut W, data_ptr: &mut u64 ) -> Xc3Result<Self::Offsets<'_>>
Write all fields and placeholder offsets
and set
data_ptr to the position after writing.
This should almost always be derived for non primitive types.source§fn should_write(&self) -> Option<bool>
fn should_write(&self) -> Option<bool>
Return
true if this type has no data and should not be written.impl StructuralPartialEq for Unk
Auto Trait Implementations§
impl RefUnwindSafe for Unk
impl Send for Unk
impl Sync for Unk
impl Unpin for Unk
impl UnwindSafe for Unk
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