pub struct DwarfReader {
pub ptr: *const u8,
}
Fields§
§ptr: *const u8
Implementations§
Source§impl DwarfReader
impl DwarfReader
pub fn new(ptr: *const u8) -> DwarfReader
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
Auto 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§
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> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more