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

26 lines
585 B
Go
Raw Permalink Normal View History

2024-12-14 01:15:08 +00:00
// Code generated by wit-bindgen-go. DO NOT EDIT.
package outgoinghandler
import (
"gitea.rebus.ninja/lore/wasm-nats-producer-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
}