Function wasmedge_sys::ffi::WasmEdge_MemoryInstanceGetPointer
source · pub unsafe extern "C" fn WasmEdge_MemoryInstanceGetPointer(
Cxt: *mut WasmEdge_MemoryInstanceContext,
Offset: u32,
Length: u32
) -> *mut u8
Expand description
Get the data pointer in a 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.