Struct cranelift_codegen::binemit::CodeInfo [−][src]
pub struct CodeInfo {
pub code_size: CodeOffset,
pub jumptables_size: CodeOffset,
pub rodata_size: CodeOffset,
pub total_size: CodeOffset,
}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: CodeOffsetNumber of bytes of machine code (the code starts at offset 0).
jumptables_size: CodeOffsetNumber of bytes of jumptables.
rodata_size: CodeOffsetNumber of bytes of rodata.
total_size: CodeOffsetNumber of bytes in total.
Implementations
impl CodeInfo[src]
impl CodeInfo[src]pub fn jumptables(&self) -> CodeOffset[src]
Offset of any relocatable jump tables, or equal to rodata if there are no jump tables.
pub fn rodata(&self) -> CodeOffset[src]
Offset of any copyable read-only data, or equal to total_size if there are no rodata.