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

Function WasmEdge_LimitCreateWithMax

lib/api/wasmedge.cpp:1319–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1317}
1318
1319WASMEDGE_CAPI_EXPORT WasmEdge_LimitContext *
1320WasmEdge_LimitCreateWithMax(const uint64_t Min, const uint64_t Max,
1321 const bool Is64Bit, const bool IsShared) noexcept {
1322 try {
1323 return toLimitCxt(new WasmEdge::AST::Limit(Min, Max, Is64Bit, IsShared));
1324 } catch (...) {
1325 handleCAPIError();
1326 return nullptr;
1327 }
1328}
1329
1330WASMEDGE_CAPI_EXPORT uint64_t
1331WasmEdge_LimitGetMin(const WasmEdge_LimitContext *Cxt) noexcept {

Callers 3

createSpecTestModuleFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85

Calls 1

handleCAPIErrorFunction · 0.85

Tested by 1

TESTFunction · 0.68