Skip to main content

WasmEdge_MemoryInstanceGetPointerConst

Function WasmEdge_MemoryInstanceGetPointerConst 

Source
pub unsafe extern "C" fn WasmEdge_MemoryInstanceGetPointerConst(
    Cxt: *const WasmEdge_MemoryInstanceContext,
    Offset: u64,
    Length: u64,
) -> *const u8
Expand description

Get the const data pointer in a const memory instance.

\param Cxt the WasmEdge_MemoryInstanceContext. \param Offset the data start offset in the memory instance. \param Length the requested data length. If the Offset + Length is larger than the data size in the memory instance, this function will return NULL.

\returns the pointer to data with the start offset. NULL if failed.