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, )
| 293 | // consumption of instances. Use negative value to keep the default value |
| 294 | // for the limit. |
| 295 | func (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 | } |