pub struct DwarfReader {
pub ptr: *const u8,
}
Fields§
§ptr: *const u8
Implementations§
source§impl DwarfReader
impl DwarfReader
pub fn new(ptr: *const u8) -> Self
sourcepub unsafe fn read<T: Copy>(&mut self) -> T
pub unsafe fn read<T: Copy>(&mut self) -> T
Read a type T and then bump the pointer by that amount.
DWARF streams are “packed”, so all types must be read at align 1.
sourcepub unsafe fn read_uleb128(&mut self) -> u64
pub unsafe fn read_uleb128(&mut self) -> u64
ULEB128 and SLEB128 encodings are defined in Section 7.6 - “Variable Length Data”.
pub unsafe fn read_sleb128(&mut self) -> i64
Trait Implementations§
source§impl Clone for DwarfReader
impl Clone for DwarfReader
source§fn clone(&self) -> DwarfReader
fn clone(&self) -> DwarfReader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DwarfReader
impl RefUnwindSafe for DwarfReader
impl !Send for DwarfReader
impl !Sync for DwarfReader
impl Unpin for DwarfReader
impl UnwindSafe for DwarfReader
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.