reader

package
v0.0.0-...-d58ffde Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidStream        = bridge.NewJSTypeError("StreamError", "not a valid readable stream")
	ErrInvalidReadingResult = bridge.NewJSTypeError("StreamError", "invalid reading result: either data returned as null, non-object, or invalid object")
)

Functions

func NewReadableStreamFrom

func NewReadableStreamFrom(reader io.Reader, defaultChunkSize int) js.Value

Types

type ReadableStream

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

func NewReadableStream

func NewReadableStream(jsReadableStream js.Value) (*ReadableStream, error)

func (*ReadableStream) Read

func (r *ReadableStream) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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