delim

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInstance = fmt.Errorf("invalid buffer delim instance")
)

Functions

This section is empty.

Types

type BufferDelim

type BufferDelim interface {
	io.ReadCloser
	io.WriterTo

	SetDelim(d rune)
	GetDelim() rune

	SetBufferSize(b libsiz.Size)
	GetBufferSize() libsiz.Size

	SetInput(i io.ReadCloser)
	Reader() io.ReadCloser
	Copy(w io.Writer) (n int64, err error)
	ReadBytes() ([]byte, error)
}

func New

func New(r io.ReadCloser, delim rune, sizeBufferRead libsiz.Size) BufferDelim

type DiscardCloser

type DiscardCloser struct{}

func (DiscardCloser) Close

func (d DiscardCloser) Close() error

func (DiscardCloser) Read

func (d DiscardCloser) Read(p []byte) (n int, err error)

func (DiscardCloser) Write

func (d DiscardCloser) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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