Struct cranelift_reader::HeapCommand
source · pub struct HeapCommand {
pub heap_type: HeapType,
pub size: Uimm64,
pub ptr_offset: Option<Uimm64>,
pub bound_offset: Option<Uimm64>,
}
Expand description
A heap command appearing in a test file.
For parsing, see Parser::parse_heap_command
Fields§
§heap_type: HeapType
Indicates the requested heap type
size: Uimm64
Size of the heap.
For dynamic heaps this is the starting size. For static heaps, this is the total size.
ptr_offset: Option<Uimm64>
Offset of the heap pointer from the vmctx base
This is done for verification purposes only
bound_offset: Option<Uimm64>
Offset of the bound pointer from the vmctx base
This is done for verification purposes only
Trait Implementations§
source§impl Clone for HeapCommand
impl Clone for HeapCommand
source§fn clone(&self) -> HeapCommand
fn clone(&self) -> HeapCommand
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 more