io

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

Buffer blocks the reader until there is something to read.

func NewBuffer

func NewBuffer() *Buffer

func (*Buffer) Close

func (b *Buffer) Close()

func (*Buffer) Read

func (b *Buffer) Read(p []byte) (int, error)

Read buffer contents into p. If the buffer is empty then Read blocks until it is non-empty or the buffer is closed.

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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