pub struct Fixups {
pub local_fixups: LocalFixups,
pub global_fixups: GLobalFixups,
pub virtual_fixups: VirtualFixups,
}
Expand description
Has fixup maps & section content bytes ref data.
Normally, the 0th classNameOffset
of this map will contain the starting position
of the string hkRootLevelContainer
in the __classnames__
section.
Fields§
§local_fixups: LocalFixups
A pointer about one struct is tied to the location of its data.
- Pair of the start position of
Array<T>
and the location whereT
is located. - A pair of the start position of a pointer to a
StringPtr
orCString
and the location of the data pointed to by the pointer.
§INFO
- key: current reader seek position
- value: dst_offset(Pointer pointed data position)
global_fixups: GLobalFixups
Location information needed when referencing class pointer, etc.
§INFO
- key: current reader seek position
- value: (dst_index, dst_offset(from absolute_offset))
virtual_fixups: VirtualFixups
Location information for the name of the C++ class that must call the constructor.
§INFO
- key: current reader seek position
- value: (dst_index, dst_offset(from absolute_offset))
§What is the dst_index
?
Index Section ID
§Examples(SkyrimSE, LE)
__classnames__
: 1__types__
: 2__data__
: 3
Implementations§
Source§impl Fixups
impl Fixups
pub const fn new( local_fixups: LocalFixups, global_fixups: GLobalFixups, virtual_fixups: VirtualFixups, ) -> Self
Sourcepub fn from_section_header<'a>(
header: &SectionHeader,
endian: Endianness,
) -> impl Parser<&'a [u8], Self, ContextError>
pub fn from_section_header<'a>( header: &SectionHeader, endian: Endianness, ) -> impl Parser<&'a [u8], Self, ContextError>
Trait Implementations§
impl Eq for Fixups
impl StructuralPartialEq for Fixups
Auto Trait Implementations§
impl Freeze for Fixups
impl RefUnwindSafe for Fixups
impl Send for Fixups
impl Sync for Fixups
impl Unpin for Fixups
impl UnwindSafe for Fixups
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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