pub struct Mapping {
pub iid: Option<u64>,
pub build_id: Option<u64>,
pub exact_offset: Option<u64>,
pub start_offset: Option<u64>,
pub start: Option<u64>,
pub end: Option<u64>,
pub load_bias: Option<u64>,
pub path_string_ids: Vec<u64>,
}
Fields§
§iid: Option<u64>
Interning key.
build_id: Option<u64>
Interning key.
exact_offset: Option<u64>
This is not set on Android 10.
start_offset: Option<u64>
§start: Option<u64>
§end: Option<u64>
§load_bias: Option<u64>
§path_string_ids: Vec<u64>
E.g. [“system”, “lib64”, “libc.so”] id of string.
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub fn build_id(&self) -> u64
pub fn build_id(&self) -> u64
Returns the value of build_id
, or the default value if build_id
is unset.
Sourcepub fn start_offset(&self) -> u64
pub fn start_offset(&self) -> u64
Returns the value of start_offset
, or the default value if start_offset
is unset.
Sourcepub fn load_bias(&self) -> u64
pub fn load_bias(&self) -> u64
Returns the value of load_bias
, or the default value if load_bias
is unset.
Sourcepub fn exact_offset(&self) -> u64
pub fn exact_offset(&self) -> u64
Returns the value of exact_offset
, or the default value if exact_offset
is unset.
Trait Implementations§
Source§impl Message for Mapping
impl Message for Mapping
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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