2024-12-14 00:30:44 +00:00
|
|
|
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
|
|
|
|
// Package instancenetwork represents the imported interface "wasi:sockets/instance-network@0.2.0".
|
|
|
|
package instancenetwork
|
|
|
|
|
|
|
|
import (
|
2024-12-14 00:56:22 +00:00
|
|
|
"gitea.rebus.ninja/lore/wasm-nats-stream-client/gen/wasi/sockets/network"
|
2024-12-14 00:30:44 +00:00
|
|
|
"github.com/bytecodealliance/wasm-tools-go/cm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Network represents the imported type alias "wasi:sockets/instance-network@0.2.0#network".
|
|
|
|
//
|
|
|
|
// See [network.Network] for more information.
|
|
|
|
type Network = network.Network
|
|
|
|
|
|
|
|
// InstanceNetwork represents the imported function "instance-network".
|
|
|
|
//
|
|
|
|
// instance-network: func() -> network
|
|
|
|
//
|
|
|
|
//go:nosplit
|
|
|
|
func InstanceNetwork() (result Network) {
|
|
|
|
result0 := wasmimport_InstanceNetwork()
|
|
|
|
result = cm.Reinterpret[Network]((uint32)(result0))
|
|
|
|
return
|
|
|
|
}
|