Lines Matching refs:Reader
13 // OneByteReader returns a Reader that implements
15 func OneByteReader(r io.Reader) io.Reader { return &oneByteReader{r} }
18 r io.Reader
28 // HalfReader returns a Reader that implements Read
30 func HalfReader(r io.Reader) io.Reader { return &halfReader{r} }
33 r io.Reader
40 // DataErrReader changes the way errors are handled by a Reader. Normally, a
41 // Reader returns an error (typically EOF) from the first Read call after the
42 // last piece of data is read. DataErrReader wraps a Reader and changes its
45 func DataErrReader(r io.Reader) io.Reader { return &dataErrReader{r, nil, make([]byte, 1024)} }
48 r io.Reader
75 func TimeoutReader(r io.Reader) io.Reader { return &timeoutReader{r, 0} }
78 r io.Reader