MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / Limiter

Method Limiter

store.go:295–311  ·  view source on GitHub ↗

Limiter provides limits for a store. Used by hosts to limit resource consumption of instances. Use negative value to keep the default value for the limit.

(
	memorySize int64,
	tableElements int64,
	instances int64,
	tables int64,
	memories int64,
)

Source from the content-addressed store, hash-verified

293// consumption of instances. Use negative value to keep the default value
294// for the limit.
295func (store *Store) Limiter(
296 memorySize int64,
297 tableElements int64,
298 instances int64,
299 tables int64,
300 memories int64,
301) {
302 C.wasmtime_store_limiter(
303 store.ptr(),
304 C.int64_t(memorySize),
305 C.int64_t(tableElements),
306 C.int64_t(instances),
307 C.int64_t(tables),
308 C.int64_t(memories),
309 )
310 runtime.KeepAlive(store)
311}

Callers 2

Calls 1

ptrMethod · 0.95

Tested by 2