bufio

package
v2.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package bufio is a replacement of the standard golang package bufio.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OriginalReader

func OriginalReader(reader io.Reader) *bufio.Reader

func OriginalReaderSize

func OriginalReaderSize(reader io.Reader, size int) *bufio.Reader

Types

type BufferedReader

type BufferedReader struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewReader

func NewReader(rawReader io.Reader) *BufferedReader

func (*BufferedReader) Cached

func (v *BufferedReader) Cached() bool

func (*BufferedReader) Read

func (v *BufferedReader) Read(b []byte) (int, error)

func (*BufferedReader) Release

func (v *BufferedReader) Release()

func (*BufferedReader) SetCached

func (v *BufferedReader) SetCached(cached bool)

type BufferedWriter

type BufferedWriter struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(rawWriter io.Writer) *BufferedWriter

func (*BufferedWriter) Cached

func (v *BufferedWriter) Cached() bool

func (*BufferedWriter) Flush

func (v *BufferedWriter) Flush() error

func (*BufferedWriter) FlushWithoutLock

func (v *BufferedWriter) FlushWithoutLock() error

func (*BufferedWriter) ReadFrom

func (v *BufferedWriter) ReadFrom(reader io.Reader) (int64, error)

func (*BufferedWriter) Release

func (v *BufferedWriter) Release()

func (*BufferedWriter) SetCached

func (v *BufferedWriter) SetCached(cached bool)

func (*BufferedWriter) Write

func (v *BufferedWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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