Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime-go
/ functions
Functions
436 in github.com/bytecodealliance/wasmtime-go
⨍
Functions
436
◇
Types & classes
58
↓ 4 callers
Function
mkValType
(ptr *C.wasm_valtype_t, owner interface{})
valtype.go:56
↓ 4 callers
Method
owner
()
externtype.go:37
↓ 4 callers
Method
ptr
()
externtype.go:28
↓ 4 callers
Method
ptr
()
importtype.go:43
↓ 4 callers
Method
ptr
()
functype.go:49
↓ 4 callers
Method
ptr
()
globaltype.go:37
↓ 4 callers
Function
takeVal
(store Storelike, src *C.wasmtime_val_t)
val.go:90
↓ 3 callers
Method
AllowShadowing
AllowShadowing configures whether names can be redefined after they've already been defined in this linker.
linker.go:52
↓ 3 callers
Method
Close
Close will deallocate this store's state explicitly. For more information see the documentation for engine.Close()
store.go:120
↓ 3 callers
Method
Close
TODO: expose ComponentLinker.Root() and the LinkerInstance type so host functions, modules, and resources can be defined. The C API has an "exclusive
component_linker_feat_component_model.go:86
↓ 3 callers
Method
Close
Close will deallocate this module's state explicitly. For more information see the documentation for engine.Close()
module.go:39
↓ 3 callers
Method
DataSize
DataSize returns the size, in bytes, that `Data()` is valid for
memory.go:64
↓ 3 callers
Method
DefineInstance
DefineInstance defines all exports of an instance provided under the module name provided. Returns an error if shadowing is disabled and names are al
linker.go:156
↓ 3 callers
Method
ExportCount
ExportCount returns the number of exports declared by this component.
component_type_feat_component_model.go:63
↓ 3 callers
Method
Externref
Externref returns the underlying value if this is an `externref`, or panics. Note that a null `externref` is returned as `nil`.
val_feat_gc.go:56
↓ 3 callers
Method
FuncIndex
FuncIndex returns the function index in the wasm module that this frame represents
trap.go:164
↓ 3 callers
Method
FuncName
FuncName returns the name, if available, for this frame's function
trap.go:171
↓ 3 callers
Method
GetExportIndex
GetExportIndex looks up the export named `name` in this component and returns a reusable [ComponentExportIndex] handle pointing at it. Pass `nil` for
component_feat_component_model.go:134
↓ 3 callers
Method
GetFuel
GetFuel returns the amount of fuel remaining in this store. If fuel consumption is not enabled via `Config.SetConsumeFuel` then this function will re
store.go:258
↓ 3 callers
Method
Instantiate
Instantiate creates a new [ComponentInstance] of `component` using the imports defined in this linker.
component_linker_feat_component_model.go:40
↓ 3 callers
Function
ModuleValidate
ModuleValidate validates whether `wasm` would be a valid wasm module according to the configuration in `store`
module_feat_cranelift.go:37
↓ 3 callers
Function
NewMemory
NewMemory creates a new `Memory` in the given `Store` with the specified `ty`.
memory.go:19
↓ 3 callers
Method
SetConsumeFuel
SetConsumeFuel configures whether fuel is enabled
config.go:135
↓ 3 callers
Method
SetCraneliftOptLevel
SetCraneliftOptLevel configures the cranelift optimization level for generated code
config_feat_cranelift.go:25
↓ 3 callers
Method
SetFuel
SetFuel sets this store's fuel to the specified value. For this method to work fuel consumption must be enabled via `Config.SetConsumeFuel`. By defau
store.go:282
↓ 3 callers
Method
SetGCSupport
SetGCSupport enables or disables GC support in Wasmtime entirely
config.go:123
↓ 3 callers
Method
SetWasmComponentModel
SetWasmComponentModel configures whether the wasm component model proposal is enabled.
config_feat_component_model.go:9
↓ 3 callers
Method
SetWasmReferenceTypes
SetWasmReferenceTypes configures whether the wasm reference types proposal is enabled
config_feat_gc.go:16
↓ 3 callers
Method
Size
Size returns the size of this table in units of elements.
table.go:43
↓ 3 callers
Function
enterWasm
Shim function that's expected to wrap any invocations of WebAssembly from Go itself. This is used to handle traps and error returns from any invocati
func.go:522
↓ 3 callers
Function
mkComponent
(ptr *C.wasmtime_component_t, engine *Engine)
component_feat_component_model.go:56
↓ 3 callers
Function
mkFuncType
(ptr *C.wasm_functype_t, owner interface{})
functype.go:39
↓ 3 callers
Function
mkGlobalType
(ptr *C.wasm_globaltype_t, owner interface{})
globaltype.go:27
↓ 3 callers
Function
mkModule
(ptr *C.wasmtime_module_t)
module.go:19
↓ 3 callers
Function
mkTableType
(ptr *C.wasm_tabletype_t, owner interface{})
tabletype.go:34
↓ 3 callers
Function
mkVal
(store Storelike, src *C.wasmtime_val_t)
val.go:69
↓ 3 callers
Method
ptr
()
store.go:108
↓ 3 callers
Method
ptr
()
exporttype.go:41
↓ 3 callers
Function
stringToByteVec
# What's up with `ptr()` methods? We use `runtime.SetFinalizer` to free all objects we allocate from C. This is intended to make usage of the API muc
ffi.go:52
↓ 2 callers
Method
AsExtern
()
extern.go:16
↓ 2 callers
Method
AsExternType
()
externtype.go:15
↓ 2 callers
Method
Close
Close deallocates this component's state explicitly. For more information see the documentation for engine.Close().
component_feat_component_model.go:166
↓ 2 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
globaltype.go:56
↓ 2 callers
Method
Close
Close will deallocate this WASI configuration's state explicitly. For more information see the documentation for engine.Close()
wasi.go:37
↓ 2 callers
Method
DefineFunc
DefineFunc acts as a convenience wrapper to calling Define and WrapFunc. Returns an error if shadowing is disabled and the name is already defined.
linker.go:85
↓ 2 callers
Method
Exports
Exports returns a list of `ExportType` which are the items that will be exported by this module after instantiation.
module.go:60
↓ 2 callers
Method
Exports
Exports returns a list of exports from this instance. Each export is returned as a `*Extern` and lines up with the exports list of the associated `Mo
instance.go:66
↓ 2 callers
Method
F64
F64 returns the underlying 64-bit float if this is an `f64`, or panics.
val.go:139
↓ 2 callers
Method
Frames
Frames returns the wasm function frames that make up this trap
trap.go:133
↓ 2 callers
Method
Get
GetOneByName loads an item by name from this linker. If the item isn't defined then nil is returned, otherwise the item is returned.
linker.go:286
↓ 2 callers
Method
Grow
Grow grows this memory by `delta` pages
memory.go:78
↓ 2 callers
Method
ImportNth
ImportNth returns the name and the [ComponentItem] for the `i`-th import. Returns `("", nil)` if `i` is out of range.
component_type_feat_component_model.go:72
↓ 2 callers
Method
IncrementEpoch
IncrementEpoch will increase the current epoch number by 1 within the current engine which will cause any connected stores with their epoch deadline e
engine.go:81
↓ 2 callers
Method
Limiter
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 li
store.go:295
↓ 2 callers
Function
NewComponent
NewComponent compiles a component-model binary into a [Component]. This function expects a component binary, such as what is produced by Rust's `carg
component_feat_component_model.go:41
↓ 2 callers
Function
NewComponentLinker
NewComponentLinker creates a new [ComponentLinker] for the given engine.
component_linker_feat_component_model.go:15
↓ 2 callers
Function
NewImportType
NewImportType creates a new `ImportType` with the given `module` and `name` and the type provided.
importtype.go:16
↓ 2 callers
Function
NewTable
NewTable creates a new `Table` in the given `Store` with the specified `ty`. The `ty` must be a reference type (`funref` or `externref`) and `init` i
table.go:24
↓ 2 callers
Method
PreopenDir
(path, guestPath string, dirPerms WasiDirPerms, filePerms WasiFilePerms)
wasi.go:164
↓ 2 callers
Method
SetEpochDeadline
SetEpochDeadline will configure the relative deadline, from the current engine's epoch number, after which wasm code will be interrupted.
store.go:145
↓ 2 callers
Method
SetEpochInterruption
SetEpochInterruption enables epoch-based instrumentation of generated code to interrupt WebAssembly execution when the current engine epoch exceeds a
config.go:174
↓ 2 callers
Method
SetStrategy
SetStrategy configures what compilation strategy is used to compile wasm code
config_feat_cranelift.go:12
↓ 2 callers
Method
SetWasmMultiMemory
SetWasmMultiMemory configures whether the wasm multi memory proposal is enabled
config.go:105
↓ 2 callers
Method
SetWasmMultiValue
SetWasmMultiValue configures whether the wasm multi value proposal is enabled
config.go:99
↓ 2 callers
Method
SetWasmThreads
SetWasmThreads configures whether the wasm threads proposal is enabled
config_feat_threads.go:8
↓ 2 callers
Method
Type
Type returns the type of item this import type expects
importtype.go:94
↓ 2 callers
Method
UnsafeData
UnsafeData returns the raw memory backed by this `Memory` as a byte slice (`[]byte`). This is not a safe method to call, hence the "unsafe" in the na
memory.go:58
↓ 2 callers
Method
convertTypeList
(list *C.wasm_valtype_vec_t)
functype.go:89
↓ 2 callers
Function
inferFuncType
(val reflect.Value)
func.go:185
↓ 2 callers
Function
insertFuncNew
(data *storeData, ty *FuncType, callback func(*Caller, []Val) ([]Val, *Trap))
store.go:167
↓ 2 callers
Function
insertFuncWrap
(data *storeData, callback reflect.Value)
store.go:197
↓ 2 callers
Method
itemNth
(i int, isImport bool)
component_type_feat_component_model.go:82
↓ 2 callers
Function
mkComponentExportIndex
(ptr *C.wasmtime_component_export_index_t)
component_feat_component_model.go:192
↓ 2 callers
Function
mkExportType
(ptr *C.wasm_exporttype_t, owner interface{})
exporttype.go:31
↓ 2 callers
Function
mkGlobal
(val C.wasmtime_global_t)
global.go:40
↓ 2 callers
Function
mkImportType
(ptr *C.wasm_importtype_t, owner interface{})
importtype.go:33
↓ 2 callers
Function
mkInstance
(val C.wasmtime_instance_t)
instance.go:54
↓ 2 callers
Function
mkMemory
(val C.wasmtime_memory_t)
memory.go:30
↓ 2 callers
Function
mkTable
(val C.wasmtime_table_t)
table.go:38
↓ 2 callers
Function
mkTrap
(ptr *C.wasm_trap_t)
trap.go:64
↓ 2 callers
Function
mkValTypeList
(tys []*ValType)
functype.go:27
↓ 2 callers
Function
multiMemoryStore
()
multi_memory_test.go:9
↓ 2 callers
Function
newObjToDrop
()
reftypes_test.go:185
↓ 2 callers
Method
owner
()
tabletype.go:53
↓ 2 callers
Method
owner
()
functype.go:58
↓ 2 callers
Method
owner
()
globaltype.go:46
↓ 2 callers
Method
ptr
()
error.go:19
↓ 2 callers
Function
refTypesInstance
(t *testing.T, wat string)
reftypes_test.go:17
↓ 2 callers
Function
typeToValType
(ty reflect.Type)
func.go:217
↓ 1 callers
Method
CacheConfigLoad
CacheConfigLoad enables compiled code caching for this `Config` using the settings specified in the configuration file `path`. For more information a
config_feat_cache.go:30
↓ 1 callers
Method
CacheConfigLoadDefault
CacheConfigLoadDefault enables compiled code caching for this `Config` using the default settings configuration can be found. For more information ab
config_feat_cache.go:16
↓ 1 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
valtype.go:98
↓ 1 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
externtype.go:47
↓ 1 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
importtype.go:62
↓ 1 callers
Method
Close
Close will deallocate this extern's state explicitly. For more information see the documentation for engine.Close()
extern.go:39
↓ 1 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
tabletype.go:63
↓ 1 callers
Method
Close
Close deallocates this value type explicitly.
component_valtype_feat_component_model.go:87
↓ 1 callers
Method
Close
Close deallocates this component type explicitly.
component_type_feat_component_model.go:106
↓ 1 callers
Method
Close
Close deallocates this item explicitly.
component_type_feat_component_model.go:174
↓ 1 callers
Method
Close
Close deallocates this index explicitly.
component_feat_component_model.go:210
← previous
next →
101–200 of 436, ranked by callers