Documentation ¶
Index ¶
- func Fuzz(data []byte) int
- type LimitReader
- func NewLimitBytesReader(areader io.Reader, amaxLines uint) (reader *LimitReader)
- func NewLimitLinesReader(areader io.Reader, amaxLines uint) (reader *LimitReader)
- func NewLimitReader(areader io.Reader, amax uint, ascanner *bufio.Scanner, add []byte) (reader *LimitReader)
- func NewLimitRunesReader(areader io.Reader, amaxLines uint) (reader *LimitReader)
- func NewLimitWordsReader(areader io.Reader, amaxLines uint) (reader *LimitReader)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.