stream

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "stream"

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamBuffer

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

StreamBuffer is a helper for managing stream data in Go

func (*StreamBuffer) Close

func (sb *StreamBuffer) Close() error

Close marks the buffer as closed

func (*StreamBuffer) Len

func (sb *StreamBuffer) Len() int

Len returns the current buffer length

func (*StreamBuffer) Read

func (sb *StreamBuffer) Read(p []byte) (int, error)

Read reads data from the buffer

func (*StreamBuffer) Write

func (sb *StreamBuffer) Write(data []byte) (int, error)

Write adds data to the buffer

type StreamModule

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

StreamModule provides Node.js-compatible stream functionality

func NewStreamModule

func NewStreamModule(vm *js.Runtime, loop *eventloop.EventLoop) *StreamModule

NewStreamModule creates a new stream module instance

Jump to

Keyboard shortcuts

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