streams

package
v0.0.0-...-3b2ba4a Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "streams"

Variables

This section is empty.

Functions

func Instantiate

func Instantiate(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