Struct symbolic_symcache::SymCache
[−]
[src]
pub struct SymCache<'a> { /* fields omitted */ }
An abstraction around a symbolication cache file.
Methods
impl<'a> SymCache<'a>
[src]
fn new(byteview: ByteView<'a>) -> Result<SymCache<'a>>
[src]
Load a symcache from a byteview.
fn from_object(obj: &Object) -> Result<SymCache<'a>>
[src]
Constructs a symcache from an object.
fn size(&self) -> usize
[src]
The total size of the cache file
fn as_bytes(&self) -> &[u8]
[src]
Returns a pointer to the internal bytes of the cache file
fn to_writer<W: Write>(&self, writer: W) -> Result<()>
[src]
Write the symcache into a new writer.
fn arch(&self) -> Result<Arch>
[src]
The architecture of the cache file
fn uuid(&self) -> Result<Uuid>
[src]
The uuid of the cache file.
fn data_source(&self) -> Result<DataSource>
[src]
The source of the sym cache.
fn has_line_info(&self) -> Result<bool>
[src]
Returns true if line information is included.
fn has_file_info(&self) -> Result<bool>
[src]
Returns true if file information is included.
fn file_format_version(&self) -> Result<u32>
[src]
The version of the cache file.
fn functions(&'a self) -> Functions<'a>
[src]
Returns an iterator over all functions.
fn lookup(&'a self, addr: u64) -> Result<Vec<LineInfo<'a>>>
[src]
Given an address this looks up the symbol at that point.
Because of inling information this returns a vector of zero or more symbols. If nothing is found then the return value will be an empty vector.