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

Function WasmEdge_LimitCreate

lib/api/wasmedge.cpp:1309–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307// >>>>>>>> WasmEdge limit functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1308
1309WASMEDGE_CAPI_EXPORT WasmEdge_LimitContext *
1310WasmEdge_LimitCreate(const uint64_t Min, const bool Is64Bit) noexcept {
1311 try {
1312 return toLimitCxt(new WasmEdge::AST::Limit(Min, Is64Bit));
1313 } catch (...) {
1314 handleCAPIError();
1315 return nullptr;
1316 }
1317}
1318
1319WASMEDGE_CAPI_EXPORT WasmEdge_LimitContext *
1320WasmEdge_LimitCreateWithMax(const uint64_t Min, const uint64_t Max,

Callers 1

TESTFunction · 0.85

Calls 1

handleCAPIErrorFunction · 0.85

Tested by 1

TESTFunction · 0.68