[−][src]Struct abxml::chunks::table_type::TableTypeWrapper
Fields
raw_data: &'a [u8]
data_offset: u64
Methods
impl<'a> TableTypeWrapper<'a>
[src]
pub fn new(raw_data: &'a [u8], data_offset: u64) -> Self
[src]
pub fn to_buffer(&self) -> Result<TableTypeBuf, Error>
[src]
pub fn get_entries(&self) -> Result<Vec<Entry>, Error>
[src]
fn decode_entries(
&self,
cursor: &mut Cursor<&[u8]>
) -> Result<Vec<Entry>, Error>
[src]
&self,
cursor: &mut Cursor<&[u8]>
) -> Result<Vec<Entry>, Error>
fn decode_entry(
cursor: &mut Cursor<&[u8]>,
id: u32
) -> Result<Option<Entry>, Error>
[src]
cursor: &mut Cursor<&[u8]>,
id: u32
) -> Result<Option<Entry>, Error>
fn decode_simple_entry(
cursor: &mut Cursor<&[u8]>,
header: EntryHeader,
id: u32
) -> Result<Option<Entry>, Error>
[src]
cursor: &mut Cursor<&[u8]>,
header: EntryHeader,
id: u32
) -> Result<Option<Entry>, Error>
fn decode_complex_entry(
cursor: &mut Cursor<&[u8]>,
header: EntryHeader,
id: u32
) -> Result<Option<Entry>, Error>
[src]
cursor: &mut Cursor<&[u8]>,
header: EntryHeader,
id: u32
) -> Result<Option<Entry>, Error>
Trait Implementations
impl<'a> TableType for TableTypeWrapper<'a>
[src]
type Configuration = ConfigurationWrapper<'a>
fn get_id(&self) -> Result<u8, Error>
[src]
fn get_amount(&self) -> Result<u32, Error>
[src]
fn get_configuration(&self) -> Result<Self::Configuration, Error>
[src]
fn get_entry(&self, index: u32) -> Result<Entry, Error>
[src]
impl<'a> Debug for TableTypeWrapper<'a>
[src]
Auto Trait Implementations
impl<'a> Unpin for TableTypeWrapper<'a>
impl<'a> Sync for TableTypeWrapper<'a>
impl<'a> Send for TableTypeWrapper<'a>
impl<'a> UnwindSafe for TableTypeWrapper<'a>
impl<'a> RefUnwindSafe for TableTypeWrapper<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,