wasm-nats-stream-client/gen/wasi/http/outgoing-handler/abi.go

26 lines
574 B
Go
Raw Normal View History

2024-12-14 00:30:44 +00:00
// Code generated by wit-bindgen-go. DO NOT EDIT.
package outgoinghandler
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/http/types"
"github.com/bytecodealliance/wasm-tools-go/cm"
"unsafe"
)
// ErrorCodeShape is used for storage in variant or result types.
type ErrorCodeShape struct {
_ cm.HostLayout
shape [unsafe.Sizeof(types.ErrorCode{})]byte
}
func lower_OptionRequestOptions(v cm.Option[RequestOptions]) (f0 uint32, f1 uint32) {
some := v.Some()
if some != nil {
f0 = 1
v1 := cm.Reinterpret[uint32](*some)
f1 = (uint32)(v1)
}
return
}