ioreaders

package
v0.0.0-...-6244057 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: AGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fuzz

func Fuzz(data []byte) int

Types

type LimitReader

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

reads only n splitted; if reached return io.EOF even though its not EOF

func NewLimitBytesReader

func NewLimitBytesReader(areader io.Reader, amaxLines uint) (reader *LimitReader)

read maximum n bytes

func NewLimitLinesReader

func NewLimitLinesReader(areader io.Reader, amaxLines uint) (reader *LimitReader)

read maximum n lines

func NewLimitReader

func NewLimitReader(areader io.Reader, amax uint, ascanner *bufio.Scanner, add []byte) (reader *LimitReader)

fresh and shiny

func NewLimitRunesReader

func NewLimitRunesReader(areader io.Reader, amaxLines uint) (reader *LimitReader)

read maximum n runes

func NewLimitWordsReader

func NewLimitWordsReader(areader io.Reader, amaxLines uint) (reader *LimitReader)

read maximum n words

func (*LimitReader) Initialise

func (reader *LimitReader) Initialise(amax uint, ascanner *bufio.Scanner, add []byte)

i n i t i a l i s e

func (*LimitReader) Read

func (reader *LimitReader) Read(readInto []byte) (read int, e error)

interface: io.Reader

Jump to

Keyboard shortcuts

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