Struct cranelift_codegen::binemit::CodeInfo
source · [−]pub struct CodeInfo {
pub code_size: CodeOffset,
pub jumptables_size: CodeOffset,
pub rodata_size: CodeOffset,
pub total_size: CodeOffset,
}
Expand description
Container for information about a vector of compiled code and its supporting read-only data.
The code starts at offset 0 and is followed optionally by relocatable jump tables and copyable (raw binary) read-only data. Any padding between sections is always part of the section that precedes the boundary between the sections.
Fields
code_size: CodeOffset
Number of bytes of machine code (the code starts at offset 0).
jumptables_size: CodeOffset
Number of bytes of jumptables.
rodata_size: CodeOffset
Number of bytes of rodata.
total_size: CodeOffset
Number of bytes in total.
Implementations
sourceimpl CodeInfo
impl CodeInfo
sourcepub fn jumptables(&self) -> CodeOffset
pub fn jumptables(&self) -> CodeOffset
Offset of any relocatable jump tables, or equal to rodata if there are no jump tables.
sourcepub fn rodata(&self) -> CodeOffset
pub fn rodata(&self) -> CodeOffset
Offset of any copyable read-only data, or equal to total_size if there are no rodata.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CodeInfo
impl Send for CodeInfo
impl Sync for CodeInfo
impl Unpin for CodeInfo
impl UnwindSafe for CodeInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more