miri::alloc_addresses

Trait EvalContextExtPriv

Source
trait EvalContextExtPriv<'tcx>: MiriInterpCxExt<'tcx> {
    // Provided methods
    fn alloc_id_from_addr(&self, addr: u64, size: i64) -> Option<AllocId> { ... }
    fn addr_from_alloc_id_uncached(
        &self,
        global_state: &mut GlobalStateInner,
        alloc_id: AllocId,
        memory_kind: MemoryKind,
    ) -> InterpResult<'tcx, u64> { ... }
    fn addr_from_alloc_id(
        &self,
        alloc_id: AllocId,
        memory_kind: MemoryKind,
    ) -> InterpResult<'tcx, u64> { ... }
}

Provided Methods§

Source

fn alloc_id_from_addr(&self, addr: u64, size: i64) -> Option<AllocId>

Source

fn addr_from_alloc_id_uncached( &self, global_state: &mut GlobalStateInner, alloc_id: AllocId, memory_kind: MemoryKind, ) -> InterpResult<'tcx, u64>

Source

fn addr_from_alloc_id( &self, alloc_id: AllocId, memory_kind: MemoryKind, ) -> InterpResult<'tcx, u64>

Implementors§

Source§

impl<'tcx> EvalContextExtPriv<'tcx> for MiriInterpCx<'tcx>