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
↓ 1 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
functype.go:68
↓ 1 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
memorytype.go:85
↓ 1 callers
Method
Close
Close will deallocate this error's state explicitly. For more information see the documentation for engine.Close()
error.go:50
↓ 1 callers
Method
Close
Close will deallocate this config's state explicitly. For more information see the documentation for engine.Close()
config.go:213
↓ 1 callers
Method
Close
Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
exporttype.go:60
↓ 1 callers
Method
Code
Code returns the code of the `Trap` if it exists, nil otherwise.
trap.go:104
↓ 1 callers
Method
Data
Data returns the raw pointer in memory of where this memory starts
memory.go:42
↓ 1 callers
Method
DefineModule
DefineModule defines automatic instantiations of the module in this linker. The `name` of the module is the name within the linker, and the `module`
linker.go:181
↓ 1 callers
Method
DefineUnknownImportsAsDefaultValues
DefineUnknownImportsAsDefaultValues defines all otherwise-missing imports of the module as values that return the default for their type. Returns an
linker.go:222
↓ 1 callers
Method
DefineUnknownImportsAsTraps
DefineUnknownImportsAsTraps defines every import of `component` that is not already satisfied by this linker as a function that traps when called. Th
component_linker_feat_component_model.go:62
↓ 1 callers
Method
DefineUnknownImportsAsTraps
DefineUnknownImportsAsTraps defines all otherwise-missing imports of the module as functions that immediately trap. Returns an error if the imports c
linker.go:204
↓ 1 callers
Method
DefineWasi
DefineWasi links a WASI module into this linker, ensuring that all exported functions are available for linking. Returns an error if shadowing is dis
linker_feat_wasi.go:11
↓ 1 callers
Method
EnableCraneliftFlag
EnableCraneliftFlag enables a target-specific flag in Cranelift. This can be used, for example, to enable SSE4.2 on x86_64 hosts. Settings can be exp
config_feat_cranelift.go:49
↓ 1 callers
Method
F32
F32 returns the underlying 32-bit float if this is an `f32`, or panics.
val.go:131
↓ 1 callers
Method
FuncNew
FuncNew defines a function in this linker in the same style as `NewFunc` Note that this function does not require a `Storelike`, which is intentional
linker.go:97
↓ 1 callers
Method
GetDefault
GetDefault acquires the "default export" of the named module in this linker. If there is no default item then an error is returned, otherwise the def
linker.go:263
↓ 1 callers
Method
GetExport
GetExport gets an exported item from the caller's module. May return `nil` if the export doesn't exist, if it's not a memory, if there isn't a caller
func.go:475
↓ 1 callers
Method
ImportCount
ImportCount returns the number of imports declared by this component.
component_type_feat_component_model.go:55
↓ 1 callers
Method
Imports
Imports returns a list of `ImportType` which are the items imported by this module and are required for instantiation
module.go:51
↓ 1 callers
Method
Is64
Is64 returns whether this is a 64-bit memory or not.
memorytype.go:114
↓ 1 callers
Method
IsPulley
IsPulley will return whether the current engine's execution is backed by the Pulley interpreter inside of Wasmtime. If this returns false then native
engine.go:89
↓ 1 callers
Method
IsShared
IsShared returns whether this is a shared memory or not.
memorytype.go:121
↓ 1 callers
Method
Kind
Kind returns the corresponding `ValKind` for this `ValType`
valtype.go:67
↓ 1 callers
Method
Kind
Kind returns the discriminator of this item.
component_type_feat_component_model.go:149
↓ 1 callers
Method
Maximum
Maximum returns the maximum size of this memory, in WebAssembly pages, if specified. If the maximum size is not specified then `(false, 0)` is return
memorytype.go:106
↓ 1 callers
Method
Minimum
Minimum returns the minimum size of this memory, in WebAssembly pages
memorytype.go:95
↓ 1 callers
Method
ModuleName
ModuleName returns the name, if available, for this frame's module
trap.go:183
↓ 1 callers
Method
Mutable
Mutable returns whether this global type is mutable or not
globaltype.go:72
↓ 1 callers
Method
Name
Name returns the name in the module this export type is exporting
exporttype.go:70
↓ 1 callers
Function
NewComponentDeserialize
NewComponentDeserialize decodes serialized bytes previously produced by [Component.Serialize] back into a [Component]. This function does not take a
component_feat_component_model.go:93
↓ 1 callers
Function
NewComponentDeserializeFile
NewComponentDeserializeFile is the same as [NewComponentDeserialize] except the bytes are read from a file at `path`.
component_feat_component_model.go:112
↓ 1 callers
Function
NewExportType
NewExportType creates a new `ExportType` with the `name` and the type provided.
exporttype.go:15
↓ 1 callers
Function
NewMemoryType64
NewMemoryType64 creates a new 64-bit `MemoryType` with the provided limits The `min` value is the minimum size, in WebAssembly pages, of this memory.
memorytype.go:43
↓ 1 callers
Function
NewModuleDeserialize
NewModuleDeserialize decodes and deserializes in-memory bytes previously produced by `module.Serialize()`. This function does not take a WebAssembly
module.go:120
↓ 1 callers
Function
NewModuleDeserializeFile
NewModuleDeserializeFile is the same as `NewModuleDeserialize` except that the bytes are read from a file instead of provided as an argument.
module.go:144
↓ 1 callers
Function
NewWasiConfig
()
wasi.go:16
↓ 1 callers
Method
SetConcurrencySupport
SetConcurrencySupport configures whether support for concurrent execution of WebAssembly is enabled for stores using this configuration.
config_feat_component_model.go:16
↓ 1 callers
Method
SetCraneliftDebugVerifier
SetCraneliftDebugVerifier configures whether the cranelift debug verifier will be active when cranelift is used to compile wasm code.
config_feat_cranelift.go:19
↓ 1 callers
Method
SetCraneliftFlag
SetCraneliftFlag sets a target-specific flag in Cranelift to the specified value. This can be used, for example, to enable SSE4.2 on x86_64 hosts. Se
config_feat_cranelift.go:63
↓ 1 callers
Method
SetCraneliftNanCanonicalization
SetCraneliftNanCanonicalization configures whether whether Cranelift should perform a NaN-canonicalization pass. When Cranelift is used as a code gen
config_feat_cranelift.go:37
↓ 1 callers
Method
SetDebugInfo
SetDebugInfo configures whether dwarf debug information for JIT code is enabled
config.go:60
↓ 1 callers
Method
SetEnv
SetEnv configures environment variables to be returned for this WASI configuration. The pairs provided must be an iterable list of key/value pairs of
wasi.go:73
↓ 1 callers
Method
SetMacOSUseMachPorts
SetMacOSUseMachPorts configures whether, when on macOS, Mach ports are used for exception handling instead of traditional Unix-based signal handling.
config.go:148
↓ 1 callers
Method
SetMaxWasmStack
SetMaxWasmStack configures the maximum stack size, in bytes, that JIT code can use. The amount of stack space that wasm takes is always relative to th
config.go:69
↓ 1 callers
Method
SetMemoryInitCOWSet
SetMemoryInitCOWSet configures whether copy-on-write memory-mapped data is used to initialize a linear memory. Initializing linear memory via a copy-
config.go:160
↓ 1 callers
Method
SetNativeUnwindInfo
SetNativeUnwindInfo whether to generate native unwind information (e.g. .eh_frame on Linux).
config.go:141
↓ 1 callers
Method
SetParallelCompilation
SetParallelCompilation configures whether compilation should use multiple threads
config_feat_parallel_compilation.go:8
↓ 1 callers
Method
SetProfiler
SetProfiler configures what profiler strategy to use for generated code
config.go:166
↓ 1 callers
Method
SetStdoutFile
(path string)
wasi.go:120
↓ 1 callers
Method
SetTarget
SetTarget configures the target triple that this configuration will produce machine code for. This option defaults to the native host. Calling this m
config.go:189
↓ 1 callers
Method
SetWasi
SetWasi will configure the WASI state to use for instances within this `Store`. The `wasi` argument cannot be reused for another `Store`, it's consum
store_feat_wasi.go:12
↓ 1 callers
Method
SetWasmBulkMemory
SetWasmBulkMemory configures whether the wasm bulk memory proposal is enabled
config.go:93
↓ 1 callers
Method
SetWasmFunctionReferences
SetWasmFunctionReferences configures whether function references are enabled
config_feat_gc.go:22
↓ 1 callers
Method
SetWasmGC
SetWasmGC configures whether garbage collection is enabled
config_feat_gc.go:10
↓ 1 callers
Method
SetWasmRelaxedSIMD
SetWasmRelaxedSIMD configures whether the wasm relaxed SIMD proposal is enabled
config.go:81
↓ 1 callers
Method
SetWasmRelaxedSIMDDeterministic
SetWasmRelaxedSIMDDeterministic configures whether the wasm relaxed SIMD proposal is in deterministic mode
config.go:87
↓ 1 callers
Method
SetWasmSIMD
SetWasmSIMD configures whether the wasm SIMD proposal is enabled
config.go:75
↓ 1 callers
Method
SetWasmTailCall
SetWasmTailCall configures whether tail calls are enabled
config.go:117
↓ 1 callers
Method
SetWasmWideArithmetic
SetWasmWideArithmetic configures whether wide arithmetic is enabled
config.go:129
↓ 1 callers
Method
Size
Size returns the size, in wasm pages, of this memory
memory.go:71
↓ 1 callers
Method
String
String renders this kind as a string, similar to the `*.wat` format
valtype.go:26
↓ 1 callers
Method
Type
Type returns the type of item this export type expects
exporttype.go:78
↓ 1 callers
Function
assertPanic
(f func())
func_test.go:324
↓ 1 callers
Method
getFuncNew
(idx int)
store.go:187
↓ 1 callers
Method
getFuncWrap
(idx int)
store.go:214
↓ 1 callers
Function
goTrampolineNew
export goTrampolineNew
func.go:72
↓ 1 callers
Function
goTrampolineWrap
export goTrampolineWrap
func.go:242
↓ 1 callers
Function
mkComponentInstance
(val C.wasmtime_component_instance_t)
component_instance_feat_component_model.go:19
↓ 1 callers
Function
mkComponentItem
(val C.wasmtime_component_item_t)
component_type_feat_component_model.go:140
↓ 1 callers
Function
mkComponentLinker
(ptr *C.wasmtime_component_linker_t)
component_linker_feat_component_model.go:21
↓ 1 callers
Function
mkComponentType
(ptr *C.wasmtime_component_type_t, engine *Engine)
component_type_feat_component_model.go:37
↓ 1 callers
Function
mkComponentValType
(val C.wasmtime_component_valtype_t)
component_valtype_feat_component_model.go:69
↓ 1 callers
Method
mkGoList
()
module.go:71
↓ 1 callers
Method
mkGoList
()
module.go:91
↓ 1 callers
Method
owner
()
importtype.go:52
↓ 1 callers
Method
owner
()
memorytype.go:75
↓ 1 callers
Method
owner
()
exporttype.go:50
↓ 1 callers
Method
ptr
()
valtype.go:79
Method
AsExtern
()
global.go:73
Method
AsExtern
()
table.go:105
Method
AsExtern
()
extern.go:101
Method
AsExtern
Implementation of the `AsExtern` interface for `Func`
func.go:465
Method
AsExtern
()
memory.go:88
Method
AsExternType
AsExternType returns this type itself
externtype.go:97
Method
Context
Implementation of the `Storelike` interface for `Caller`.
func.go:495
Method
Data
Data returns arbitrary data attached to [Store] via [NewStoreWithData]. If [Store] was created with [NewStore], this function returns nil.
store.go:139
Method
Data
Implementation of [Storelike.Data] for [Caller] See [Store.Data] and [NewStoreWithData] for more.
func.go:504
Method
Error
()
error.go:28
Function
ExampleConfig_fuel
Example of limiting a WebAssembly function's runtime using "fuel consumption".
example_test.go:17
Function
ExampleConfig_interrupt
Small example of how you can interrupt the execution of a wasm module to ensure that it doesn't run for too long.
example_test.go:95
Function
ExampleConfig_multi
An example of enabling the multi-value feature of WebAssembly and interacting with multi-value functions.
example_test.go:155
Function
ExampleLinker
()
example_test.go:240
Function
ExampleMemory
An example of working with the Memory type to read/write wasm memory.
example_test.go:312
Function
ExampleModule_serialize
Small example of how to serialize a compiled wasm module, and then instantiate it from the compilation artifacts.
example_test.go:440
Function
ExampleVal_Externref
Small example of how to use `externref`s.
example_test.go:506
Function
ExampleWasiConfig
An example of linking WASI to the runtime in order to interact with the system. It uses the WAT code from https://github.com/bytecodealliance/wasmtime
example_test.go:584
Function
Example_gcd
An example of a wasm module which calculates the GCD of two numbers
example_test.go:719
Function
Example_hello
An example of instantiating a small wasm module which imports functionality from the host, then calling into wasm which calls back into the host.
example_test.go:668
Function
Example_storedata
An example of using [NewStoreWithData] to associate arbitrary data with a [Store], accessible in a callback function via [Caller.Data]
example_test.go:776
Method
ExitStatus
ExitStatus returns an `int32` exit status if this was a WASI-defined exit code. The `bool` returned indicates whether it was a WASI-defined exit or no
error.go:40
← previous
next →
201–300 of 436, ranked by callers