MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_Result WasmEdge_MemoryInstanceSetData

Function WasmEdge_Result WasmEdge_MemoryInstanceSetData

lib/api/wasmedge.cpp:2900–2909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2898}
2899
2900WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_MemoryInstanceSetData(
2901 WasmEdge_MemoryInstanceContext *Cxt, const uint8_t *Data,
2902 const uint64_t Offset, const uint64_t Length) noexcept {
2903 return wrap(
2904 [&]() {
2905 return fromMemCxt(Cxt)->setBytes(genSpan(Data, Length), Offset, 0,
2906 Length);
2907 },
2908 EmptyThen, Cxt, Data);
2909}
2910
2911WASMEDGE_CAPI_EXPORT uint8_t *
2912WasmEdge_MemoryInstanceGetPointer(WasmEdge_MemoryInstanceContext *Cxt,

Callers

nothing calls this directly

Calls 3

wrapFunction · 0.85
genSpanFunction · 0.85
setBytesMethod · 0.80

Tested by

no test coverage detected