MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_MemoryInstanceGetMemoryType

Function WasmEdge_MemoryInstanceGetMemoryType

lib/api/wasmedge.cpp:2883–2890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2881}
2882
2883WASMEDGE_CAPI_EXPORT const WasmEdge_MemoryTypeContext *
2884WasmEdge_MemoryInstanceGetMemoryType(
2885 const WasmEdge_MemoryInstanceContext *Cxt) noexcept {
2886 if (Cxt) {
2887 return toMemTypeCxt(&fromMemCxt(Cxt)->getMemoryType());
2888 }
2889 return nullptr;
2890}
2891
2892WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_MemoryInstanceGetData(
2893 const WasmEdge_MemoryInstanceContext *Cxt, uint8_t *Data,

Callers 1

TESTFunction · 0.85

Calls 1

toMemTypeCxtFunction · 0.85

Tested by 1

TESTFunction · 0.68