bufio2

package
v0.0.0-...-6d34d80 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBufferSize = 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(rd io.Reader) *Reader

func NewReaderBuffer

func NewReaderBuffer(rd io.Reader, buf []byte) *Reader

func NewReaderSize

func NewReaderSize(rd io.Reader, size int) *Reader

func (*Reader) PeekByte

func (b *Reader) PeekByte() (byte, error)

func (*Reader) Read

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

func (*Reader) ReadByte

func (b *Reader) ReadByte() (byte, error)

func (*Reader) ReadBytes

func (b *Reader) ReadBytes(delim byte) ([]byte, error)

func (*Reader) ReadFull

func (b *Reader) ReadFull(n int) ([]byte, error)

func (*Reader) ReadSlice

func (b *Reader) ReadSlice(delim byte) ([]byte, error)

type Writer

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

func NewWriter

func NewWriter(wr io.Writer) *Writer

func NewWriterBuffer

func NewWriterBuffer(wr io.Writer, buf []byte) *Writer

func NewWriterSize

func NewWriterSize(wr io.Writer, size int) *Writer

func (*Writer) Flush

func (b *Writer) Flush() error

func (*Writer) Write

func (b *Writer) Write(p []byte) (nn int, err error)

func (*Writer) WriteByte

func (b *Writer) WriteByte(c byte) error

func (*Writer) WriteString

func (b *Writer) WriteString(s string) (nn int, err error)

Jump to

Keyboard shortcuts

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