1986 lines
72 KiB
Go
1986 lines
72 KiB
Go
//go:build !wasm && !wasi && !wasip1 && !wasip2 && !wasm_unknown && !tinygo.wasm
|
|
|
|
// Code generated by wadge-bindgen-go DO NOT EDIT
|
|
|
|
package main
|
|
|
|
import (
|
|
github_com__bytecodealliance__wasm___tools___go__cm "github.com/bytecodealliance/wasm-tools-go/cm"
|
|
go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock "go.wasmcloud.dev/component/gen/wasi/clocks/monotonic-clock"
|
|
go_wasmcloud_dev__component__gen__wasi__http__outgoing___handler "go.wasmcloud.dev/component/gen/wasi/http/outgoing-handler"
|
|
go_wasmcloud_dev__component__gen__wasi__http__types "go.wasmcloud.dev/component/gen/wasi/http/types"
|
|
go_wasmcloud_dev__component__gen__wasi__io__poll "go.wasmcloud.dev/component/gen/wasi/io/poll"
|
|
go_wasmcloud_dev__component__gen__wasi__io__streams "go.wasmcloud.dev/component/gen/wasi/io/streams"
|
|
wadge "go.wasmcloud.dev/wadge"
|
|
"runtime"
|
|
"unsafe"
|
|
)
|
|
|
|
const _ string = runtime.Compiler
|
|
|
|
var _ unsafe.Pointer
|
|
|
|
//go:linkname wasmimport_Now go.wasmcloud.dev/component/gen/wasi/clocks/monotonic-clock.wasmimport_Now
|
|
func wasmimport_Now() (result0 uint64) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:clocks/monotonic-clock@0.2.0", "now", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_Resolution go.wasmcloud.dev/component/gen/wasi/clocks/monotonic-clock.wasmimport_Resolution
|
|
func wasmimport_Resolution() (result0 uint64) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:clocks/monotonic-clock@0.2.0", "resolution", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_SubscribeDuration go.wasmcloud.dev/component/gen/wasi/clocks/monotonic-clock.wasmimport_SubscribeDuration
|
|
func wasmimport_SubscribeDuration(when0 uint64) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:clocks/monotonic-clock@0.2.0", "subscribe-duration", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&when0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_SubscribeInstant go.wasmcloud.dev/component/gen/wasi/clocks/monotonic-clock.wasmimport_SubscribeInstant
|
|
func wasmimport_SubscribeInstant(when0 uint64) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:clocks/monotonic-clock@0.2.0", "subscribe-instant", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&when0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_Handle go.wasmcloud.dev/component/gen/wasi/http/outgoing-handler.wasmimport_Handle
|
|
func wasmimport_Handle(request0 uint32, options0 uint32, options1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__outgoing___handler.ErrorCodeShape, go_wasmcloud_dev__component__gen__wasi__http__types.FutureIncomingResponse, go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/outgoing-handler@0.2.0", "handle", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&request0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&options0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&options1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_NewFields go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_NewFields
|
|
func wasmimport_NewFields() (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[constructor]fields", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_NewOutgoingRequest go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_NewOutgoingRequest
|
|
func wasmimport_NewOutgoingRequest(headers0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[constructor]outgoing-request", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&headers0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_NewOutgoingResponse go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_NewOutgoingResponse
|
|
func wasmimport_NewOutgoingResponse(headers0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[constructor]outgoing-response", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&headers0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_NewRequestOptions go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_NewRequestOptions
|
|
func wasmimport_NewRequestOptions() (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[constructor]request-options", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsAppend go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsAppend
|
|
func wasmimport_FieldsAppend(self0 uint32, name0 *uint8, name1 uint32, value0 *uint8, value1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.HeaderError, struct{}, go_wasmcloud_dev__component__gen__wasi__http__types.HeaderError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]fields.append", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(name0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&name1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(value0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&value1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsClone go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsClone
|
|
func wasmimport_FieldsClone(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]fields.clone", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsDelete go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsDelete
|
|
func wasmimport_FieldsDelete(self0 uint32, name0 *uint8, name1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.HeaderError, struct{}, go_wasmcloud_dev__component__gen__wasi__http__types.HeaderError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]fields.delete", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(name0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&name1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsEntries go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsEntries
|
|
func wasmimport_FieldsEntries(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.List[github_com__bytecodealliance__wasm___tools___go__cm.Tuple[go_wasmcloud_dev__component__gen__wasi__http__types.FieldKey, go_wasmcloud_dev__component__gen__wasi__http__types.FieldValue]]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]fields.entries", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsGet go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsGet
|
|
func wasmimport_FieldsGet(self0 uint32, name0 *uint8, name1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.List[go_wasmcloud_dev__component__gen__wasi__http__types.FieldValue]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]fields.get", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(name0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&name1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsHas go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsHas
|
|
func wasmimport_FieldsHas(self0 uint32, name0 *uint8, name1 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]fields.has", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(name0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&name1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsSet go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsSet
|
|
func wasmimport_FieldsSet(self0 uint32, name0 *uint8, name1 uint32, value0 *go_wasmcloud_dev__component__gen__wasi__http__types.FieldValue, value1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.HeaderError, struct{}, go_wasmcloud_dev__component__gen__wasi__http__types.HeaderError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]fields.set", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(name0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&name1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(value0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&value1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FutureIncomingResponseGet go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FutureIncomingResponseGet
|
|
func wasmimport_FutureIncomingResponseGet(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[github_com__bytecodealliance__wasm___tools___go__cm.Result[github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, go_wasmcloud_dev__component__gen__wasi__http__types.IncomingResponse, go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, go_wasmcloud_dev__component__gen__wasi__http__types.IncomingResponse, go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], struct{}]]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]future-incoming-response.get", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FutureIncomingResponseSubscribe go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FutureIncomingResponseSubscribe
|
|
func wasmimport_FutureIncomingResponseSubscribe(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]future-incoming-response.subscribe", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FutureTrailersGet go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FutureTrailersGet
|
|
func wasmimport_FutureTrailersGet(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[github_com__bytecodealliance__wasm___tools___go__cm.Result[github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__http__types.Trailers], go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__http__types.Trailers], go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], struct{}]]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]future-trailers.get", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FutureTrailersSubscribe go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FutureTrailersSubscribe
|
|
func wasmimport_FutureTrailersSubscribe(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]future-trailers.subscribe", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingBodyStream go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingBodyStream
|
|
func wasmimport_IncomingBodyStream(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.InputStream, go_wasmcloud_dev__component__gen__wasi__io__streams.InputStream, struct{}]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-body.stream", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingRequestAuthority go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingRequestAuthority
|
|
func wasmimport_IncomingRequestAuthority(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[string]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-request.authority", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingRequestConsume go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingRequestConsume
|
|
func wasmimport_IncomingRequestConsume(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.IncomingBody, go_wasmcloud_dev__component__gen__wasi__http__types.IncomingBody, struct{}]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-request.consume", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingRequestHeaders go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingRequestHeaders
|
|
func wasmimport_IncomingRequestHeaders(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-request.headers", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingRequestMethod go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingRequestMethod
|
|
func wasmimport_IncomingRequestMethod(self0 uint32, result *go_wasmcloud_dev__component__gen__wasi__http__types.Method) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-request.method", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingRequestPathWithQuery go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingRequestPathWithQuery
|
|
func wasmimport_IncomingRequestPathWithQuery(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[string]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-request.path-with-query", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingRequestScheme go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingRequestScheme
|
|
func wasmimport_IncomingRequestScheme(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__http__types.Scheme]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-request.scheme", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingResponseConsume go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingResponseConsume
|
|
func wasmimport_IncomingResponseConsume(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.IncomingBody, go_wasmcloud_dev__component__gen__wasi__http__types.IncomingBody, struct{}]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-response.consume", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingResponseHeaders go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingResponseHeaders
|
|
func wasmimport_IncomingResponseHeaders(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-response.headers", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingResponseStatus go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingResponseStatus
|
|
func wasmimport_IncomingResponseStatus(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]incoming-response.status", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingBodyWrite go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingBodyWrite
|
|
func wasmimport_OutgoingBodyWrite(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.OutputStream, go_wasmcloud_dev__component__gen__wasi__io__streams.OutputStream, struct{}]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-body.write", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestAuthority go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestAuthority
|
|
func wasmimport_OutgoingRequestAuthority(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[string]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.authority", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestBody go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestBody
|
|
func wasmimport_OutgoingRequestBody(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.OutgoingBody, go_wasmcloud_dev__component__gen__wasi__http__types.OutgoingBody, struct{}]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.body", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestHeaders go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestHeaders
|
|
func wasmimport_OutgoingRequestHeaders(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.headers", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestMethod go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestMethod
|
|
func wasmimport_OutgoingRequestMethod(self0 uint32, result *go_wasmcloud_dev__component__gen__wasi__http__types.Method) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.method", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestPathWithQuery go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestPathWithQuery
|
|
func wasmimport_OutgoingRequestPathWithQuery(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[string]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.path-with-query", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestScheme go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestScheme
|
|
func wasmimport_OutgoingRequestScheme(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__http__types.Scheme]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.scheme", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestSetAuthority go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestSetAuthority
|
|
func wasmimport_OutgoingRequestSetAuthority(self0 uint32, authority0 uint32, authority1 *uint8, authority2 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.set-authority", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&authority0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(authority1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&authority2)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestSetMethod go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestSetMethod
|
|
func wasmimport_OutgoingRequestSetMethod(self0 uint32, method0 uint32, method1 *uint8, method2 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.set-method", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&method0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(method1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&method2)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestSetPathWithQuery go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestSetPathWithQuery
|
|
func wasmimport_OutgoingRequestSetPathWithQuery(self0 uint32, pathWithQuery0 uint32, pathWithQuery1 *uint8, pathWithQuery2 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.set-path-with-query", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&pathWithQuery0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(pathWithQuery1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&pathWithQuery2)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestSetScheme go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestSetScheme
|
|
func wasmimport_OutgoingRequestSetScheme(self0 uint32, scheme0 uint32, scheme1 uint32, scheme2 *uint8, scheme3 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-request.set-scheme", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&scheme0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&scheme1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(scheme2)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&scheme3)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingResponseBody go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingResponseBody
|
|
func wasmimport_OutgoingResponseBody(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.OutgoingBody, go_wasmcloud_dev__component__gen__wasi__http__types.OutgoingBody, struct{}]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-response.body", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingResponseHeaders go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingResponseHeaders
|
|
func wasmimport_OutgoingResponseHeaders(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-response.headers", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingResponseSetStatusCode go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingResponseSetStatusCode
|
|
func wasmimport_OutgoingResponseSetStatusCode(self0 uint32, statusCode0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-response.set-status-code", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&statusCode0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingResponseStatusCode go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingResponseStatusCode
|
|
func wasmimport_OutgoingResponseStatusCode(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]outgoing-response.status-code", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_RequestOptionsBetweenBytesTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsBetweenBytesTimeout
|
|
func wasmimport_RequestOptionsBetweenBytesTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock.Duration]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]request-options.between-bytes-timeout", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_RequestOptionsConnectTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsConnectTimeout
|
|
func wasmimport_RequestOptionsConnectTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock.Duration]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]request-options.connect-timeout", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_RequestOptionsFirstByteTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsFirstByteTimeout
|
|
func wasmimport_RequestOptionsFirstByteTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock.Duration]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]request-options.first-byte-timeout", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_RequestOptionsSetBetweenBytesTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsSetBetweenBytesTimeout
|
|
func wasmimport_RequestOptionsSetBetweenBytesTimeout(self0 uint32, duration0 uint32, duration1 uint64) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]request-options.set-between-bytes-timeout", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&duration0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&duration1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_RequestOptionsSetConnectTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsSetConnectTimeout
|
|
func wasmimport_RequestOptionsSetConnectTimeout(self0 uint32, duration0 uint32, duration1 uint64) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]request-options.set-connect-timeout", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&duration0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&duration1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_RequestOptionsSetFirstByteTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsSetFirstByteTimeout
|
|
func wasmimport_RequestOptionsSetFirstByteTimeout(self0 uint32, duration0 uint32, duration1 uint64) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[method]request-options.set-first-byte-timeout", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&duration0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&duration1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsResourceDrop
|
|
func wasmimport_FieldsResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]fields", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FutureIncomingResponseResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FutureIncomingResponseResourceDrop
|
|
func wasmimport_FutureIncomingResponseResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]future-incoming-response", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FutureTrailersResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FutureTrailersResourceDrop
|
|
func wasmimport_FutureTrailersResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]future-trailers", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingBodyResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingBodyResourceDrop
|
|
func wasmimport_IncomingBodyResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]incoming-body", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingRequestResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingRequestResourceDrop
|
|
func wasmimport_IncomingRequestResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]incoming-request", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingResponseResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingResponseResourceDrop
|
|
func wasmimport_IncomingResponseResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]incoming-response", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingBodyResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingBodyResourceDrop
|
|
func wasmimport_OutgoingBodyResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]outgoing-body", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingRequestResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingRequestResourceDrop
|
|
func wasmimport_OutgoingRequestResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]outgoing-request", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingResponseResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingResponseResourceDrop
|
|
func wasmimport_OutgoingResponseResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]outgoing-response", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_RequestOptionsResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsResourceDrop
|
|
func wasmimport_RequestOptionsResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]request-options", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_ResponseOutparamResourceDrop go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_ResponseOutparamResourceDrop
|
|
func wasmimport_ResponseOutparamResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[resource-drop]response-outparam", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_FieldsFromList go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FieldsFromList
|
|
func wasmimport_FieldsFromList(entries0 *github_com__bytecodealliance__wasm___tools___go__cm.Tuple[go_wasmcloud_dev__component__gen__wasi__http__types.FieldKey, go_wasmcloud_dev__component__gen__wasi__http__types.FieldValue], entries1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.Fields, go_wasmcloud_dev__component__gen__wasi__http__types.Fields, go_wasmcloud_dev__component__gen__wasi__http__types.HeaderError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[static]fields.from-list", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(entries0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&entries1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_IncomingBodyFinish go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingBodyFinish
|
|
func wasmimport_IncomingBodyFinish(this0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[static]incoming-body.finish", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&this0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutgoingBodyFinish go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingBodyFinish
|
|
func wasmimport_OutgoingBodyFinish(this0 uint32, trailers0 uint32, trailers1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode, struct{}, go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[static]outgoing-body.finish", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&this0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&trailers0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&trailers1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_ResponseOutparamSet go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_ResponseOutparamSet
|
|
func wasmimport_ResponseOutparamSet(param0 uint32, response0 uint32, response1 uint32, response2 uint32, response3 uint64, response4 uint32, response5 uint32, response6 uint32, response7 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "[static]response-outparam.set", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(¶m0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response2)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response3)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response4)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response5)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response6)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&response7)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_HTTPErrorCode go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_HTTPErrorCode
|
|
func wasmimport_HTTPErrorCode(err0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:http/types@0.2.0", "http-error-code", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&err0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_ErrorToDebugString go.wasmcloud.dev/component/gen/wasi/io/error.wasmimport_ErrorToDebugString
|
|
func wasmimport_ErrorToDebugString(self0 uint32, result *string) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/error@0.2.0", "[method]error.to-debug-string", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_ErrorResourceDrop go.wasmcloud.dev/component/gen/wasi/io/error.wasmimport_ErrorResourceDrop
|
|
func wasmimport_ErrorResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/error@0.2.0", "[resource-drop]error", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_PollableBlock go.wasmcloud.dev/component/gen/wasi/io/poll.wasmimport_PollableBlock
|
|
func wasmimport_PollableBlock(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/poll@0.2.0", "[method]pollable.block", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_PollableReady go.wasmcloud.dev/component/gen/wasi/io/poll.wasmimport_PollableReady
|
|
func wasmimport_PollableReady(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/poll@0.2.0", "[method]pollable.ready", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_PollableResourceDrop go.wasmcloud.dev/component/gen/wasi/io/poll.wasmimport_PollableResourceDrop
|
|
func wasmimport_PollableResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/poll@0.2.0", "[resource-drop]pollable", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_Poll go.wasmcloud.dev/component/gen/wasi/io/poll.wasmimport_Poll
|
|
func wasmimport_Poll(in0 *go_wasmcloud_dev__component__gen__wasi__io__poll.Pollable, in1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.List[uint32]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/poll@0.2.0", "poll", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(in0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&in1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_InputStreamBlockingRead go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_InputStreamBlockingRead
|
|
func wasmimport_InputStreamBlockingRead(self0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[github_com__bytecodealliance__wasm___tools___go__cm.List[uint8], github_com__bytecodealliance__wasm___tools___go__cm.List[uint8], go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]input-stream.blocking-read", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_InputStreamBlockingSkip go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_InputStreamBlockingSkip
|
|
func wasmimport_InputStreamBlockingSkip(self0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[uint64, uint64, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]input-stream.blocking-skip", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_InputStreamRead go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_InputStreamRead
|
|
func wasmimport_InputStreamRead(self0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[github_com__bytecodealliance__wasm___tools___go__cm.List[uint8], github_com__bytecodealliance__wasm___tools___go__cm.List[uint8], go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]input-stream.read", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_InputStreamSkip go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_InputStreamSkip
|
|
func wasmimport_InputStreamSkip(self0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[uint64, uint64, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]input-stream.skip", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_InputStreamSubscribe go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_InputStreamSubscribe
|
|
func wasmimport_InputStreamSubscribe(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]input-stream.subscribe", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamBlockingFlush go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamBlockingFlush
|
|
func wasmimport_OutputStreamBlockingFlush(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError, struct{}, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.blocking-flush", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamBlockingSplice go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamBlockingSplice
|
|
func wasmimport_OutputStreamBlockingSplice(self0 uint32, src0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[uint64, uint64, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.blocking-splice", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&src0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamBlockingWriteAndFlush go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamBlockingWriteAndFlush
|
|
func wasmimport_OutputStreamBlockingWriteAndFlush(self0 uint32, contents0 *uint8, contents1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError, struct{}, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.blocking-write-and-flush", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(contents0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&contents1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamBlockingWriteZeroesAndFlush go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamBlockingWriteZeroesAndFlush
|
|
func wasmimport_OutputStreamBlockingWriteZeroesAndFlush(self0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError, struct{}, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.blocking-write-zeroes-and-flush", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamCheckWrite go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamCheckWrite
|
|
func wasmimport_OutputStreamCheckWrite(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[uint64, uint64, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.check-write", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamFlush go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamFlush
|
|
func wasmimport_OutputStreamFlush(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError, struct{}, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.flush", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamSplice go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamSplice
|
|
func wasmimport_OutputStreamSplice(self0 uint32, src0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[uint64, uint64, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.splice", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&src0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamSubscribe go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamSubscribe
|
|
func wasmimport_OutputStreamSubscribe(self0 uint32) (result0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.subscribe", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&result0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamWrite go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamWrite
|
|
func wasmimport_OutputStreamWrite(self0 uint32, contents0 *uint8, contents1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError, struct{}, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.write", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(contents0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&contents1)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamWriteZeroes go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamWriteZeroes
|
|
func wasmimport_OutputStreamWriteZeroes(self0 uint32, len0 uint64, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError, struct{}, go_wasmcloud_dev__component__gen__wasi__io__streams.StreamError]) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[method]output-stream.write-zeroes", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&len0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}(), func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(result)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_InputStreamResourceDrop go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_InputStreamResourceDrop
|
|
func wasmimport_InputStreamResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[resource-drop]input-stream", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|
|
|
|
//go:linkname wasmimport_OutputStreamResourceDrop go.wasmcloud.dev/component/gen/wasi/io/streams.wasmimport_OutputStreamResourceDrop
|
|
func wasmimport_OutputStreamResourceDrop(self0 uint32) {
|
|
var __p runtime.Pinner
|
|
defer __p.Unpin()
|
|
if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error {
|
|
return __instance.Call("wasi:io/streams@0.2.0", "[resource-drop]output-stream", func() unsafe.Pointer {
|
|
ptr := unsafe.Pointer(&self0)
|
|
__p.Pin(ptr)
|
|
return ptr
|
|
}())
|
|
}); __err != nil {
|
|
wadge.CurrentErrorHandler()(__err)
|
|
}
|
|
return
|
|
}
|