streams

package
v0.0.0-...-db83f88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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_0_2_0(ctx context.Context, r wazero.Runtime, s *Streams) error

func Instantiate_2023_10_18

func Instantiate_2023_10_18(ctx context.Context, r wazero.Runtime, s *Streams) error

func Instantiate_2023_11_10

func Instantiate_2023_11_10(ctx context.Context, r wazero.Runtime, s *Streams) error

func Instantiate_v1

func Instantiate_v1(ctx context.Context, r wazero.Runtime, s *Streams) error

Types

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

type Streams

type Streams struct {
	// contains filtered or unexported fields
}

func MakeStreams

func MakeStreams() *Streams

func (*Streams) DeleteStream

func (s *Streams) DeleteStream(handle uint32)

func (*Streams) GetStream

func (s *Streams) GetStream(handle uint32) (stream Stream, found bool)

func (*Streams) NewInputStream

func (s *Streams) NewInputStream(reader io.Reader) uint32

func (*Streams) NewOutputStream

func (s *Streams) NewOutputStream(writer io.Writer) uint32

func (*Streams) Read

func (s *Streams) Read(handle uint32, data []byte) (int, bool, error)

func (*Streams) Write

func (s *Streams) Write(handle uint32, data []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL