ECSExecutionImage

Struct ECSExecutionImage 

Source
pub struct ECSExecutionImage {
Show 21 fields file_header: FileHeader, section_header: SectionHeader, image: MemReader, image_global: Option<MemReader>, image_const: Option<MemReader>, image_shared: Option<MemReader>, section_class_info: SectionClassInfo, section_function: SectionFunction, section_init_naked_func: SectionInitNakedFunc, section_func_info: SectionFuncInfo, section_symbol_info: Option<SectionSymbolInfo>, section_global: Option<SectionGlobal>, section_data: Option<SectionData>, section_const_string: SectionConstString, section_link_info: Option<SectionLinkInfo>, section_link_info_ex: Option<SectionLinkInfoEx>, section_ref_func: Option<SectionRefFunc>, section_ref_code: Option<SectionRefCode>, section_ref_class: Option<SectionRefClass>, section_import_native_func: SectionImportNativeFunc, no_part_label: bool,
}
Available on crate feature entis-gls only.

Fields§

§file_header: FileHeader§section_header: SectionHeader§image: MemReader§image_global: Option<MemReader>§image_const: Option<MemReader>§image_shared: Option<MemReader>§section_class_info: SectionClassInfo§section_function: SectionFunction§section_init_naked_func: SectionInitNakedFunc§section_func_info: SectionFuncInfo§section_symbol_info: Option<SectionSymbolInfo>§section_global: Option<SectionGlobal>§section_data: Option<SectionData>§section_const_string: SectionConstString§section_link_info: Option<SectionLinkInfo>§section_link_info_ex: Option<SectionLinkInfoEx>§section_ref_func: Option<SectionRefFunc>§section_ref_code: Option<SectionRefCode>§section_ref_class: Option<SectionRefClass>§section_import_native_func: SectionImportNativeFunc§no_part_label: bool

Implementations§

Source§

impl ECSExecutionImage

Source

pub fn new(reader: MemReaderRef<'_>, config: &ExtraConfig) -> Result<Self>

Source

fn inner_new( reader: MemReaderRef<'_>, config: &ExtraConfig, ver: u32, ) -> Result<Self>

Source

fn fix_image<'a, 'b>( assembly: &ECSExecutionImageAssembly, disasm: &mut ECSExecutionImageDisassembler<'a>, writer: &mut MemWriter, commands: &HashMap<u32, &'b ECSExecutionImageCommandRecord>, ) -> Result<()>

Source

fn fix_references( &mut self, commands: &HashMap<u32, &ECSExecutionImageCommandRecord>, ) -> Result<()>

Source

fn save<'a>(&self, writer: Box<dyn Write + 'a>) -> Result<()>

Trait Implementations§

Source§

impl Clone for ECSExecutionImage

Source§

fn clone(&self) -> ECSExecutionImage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ECSExecutionImage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ECSImage for ECSExecutionImage

Source§

fn disasm<'a>(&self, writer: Box<dyn Write + 'a>) -> Result<()>

Source§

fn export(&self) -> Result<Vec<Message>>

Source§

fn export_multi(&self) -> Result<HashMap<String, Vec<Message>>>

Source§

fn export_all(&self) -> Result<Vec<String>>

Source§

fn import<'a>( &self, messages: Vec<Message>, file: Box<dyn WriteSeek + 'a>, replacement: Option<&'a ReplacementTable>, ) -> Result<()>

Source§

fn import_multi<'a>( &self, messages: HashMap<String, Vec<Message>>, file: Box<dyn WriteSeek + 'a>, replacement: Option<&'a ReplacementTable>, ) -> Result<()>

Source§

fn import_all<'a>( &self, messages: Vec<String>, file: Box<dyn WriteSeek + 'a>, ) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> AnyDebug for T
where T: Debug + Any,