pub struct ObjectLineMapping { /* private fields */ }Expand description
A line mapping extracted from an object.
This is only intended as an intermediate structure for serialization, not for lookups.
Implementations§
Source§impl ObjectLineMapping
impl ObjectLineMapping
Sourcepub fn from_object<'data, 'object, O, E>(object: &'object O) -> Result<Self, E>where
O: ObjectLike<'data, 'object, Error = E>,
pub fn from_object<'data, 'object, O, E>(object: &'object O) -> Result<Self, E>where
O: ObjectLike<'data, 'object, Error = E>,
Create a line mapping from the given object.
The mapping is constructed by iterating over all the source files referenced by object and
parsing Il2cpp source_info records from each. The referenced C++ source files are read
from the local filesystem.
Sourcepub fn from_object_with_provider<'data, 'object, O, E, B, P>(
object: &'object O,
provider: P,
) -> Result<Self, E>
pub fn from_object_with_provider<'data, 'object, O, E, B, P>( object: &'object O, provider: P, ) -> Result<Self, E>
Create a line mapping from the given object, obtaining the referenced
C++ source file contents from provider.
This is the filesystem-free counterpart of Self::from_object, for
environments without filesystem access (e.g. WebAssembly): the object’s
referenced source paths are enumerated via its debug session, and each is
passed to provider, which returns the file’s bytes (or None to skip
it). Only files containing Il2cpp source_info records contribute to the
mapping.