Documentation ¶
Index ¶
- Constants
- func Instantiate_0_2_0(ctx context.Context, r wazero.Runtime, s *Streams) error
- func Instantiate_2023_10_18(ctx context.Context, r wazero.Runtime, s *Streams) error
- func Instantiate_2023_11_10(ctx context.Context, r wazero.Runtime, s *Streams) error
- func Instantiate_v1(ctx context.Context, r wazero.Runtime, s *Streams) error
- type Stream
- type Streams
- func (s *Streams) DeleteStream(handle uint32)
- func (s *Streams) GetStream(handle uint32) (stream Stream, found bool)
- func (s *Streams) NewInputStream(reader io.Reader) uint32
- func (s *Streams) NewOutputStream(writer io.Writer) uint32
- func (s *Streams) Read(handle uint32, data []byte) (int, bool, error)
- func (s *Streams) Write(handle uint32, data []byte) (int, error)
Constants ¶
View Source
const ( PollName_2023_11_10 = "wasi:io/poll@0.2.0-rc-2023-11-10" PollName_0_2_0 = "wasi:io/poll@0.2.0" )
View Source
const ( ModuleName = "streams" ModuleName_2023_10_18 = "wasi:io/streams@0.2.0-rc-2023-10-18" ModuleName_2023_11_10 = "wasi:io/streams@0.2.0-rc-2023-11-10" ModuleName_0_2_0 = "wasi:io/streams@0.2.0" )
Variables ¶
This section is empty.
Functions ¶
func Instantiate_0_2_0 ¶
func Instantiate_2023_10_18 ¶
func Instantiate_2023_11_10 ¶
Types ¶
type Streams ¶
type Streams struct {
// contains filtered or unexported fields
}
func MakeStreams ¶
func MakeStreams() *Streams
func (*Streams) DeleteStream ¶
Click to show internal directories.
Click to hide internal directories.