Home | History | Annotate | Download | only in bufio

Lines Matching defs:Read

34 	r, w         int       // buf read and write positions
69 // the buffered reader to read from r.
83 var errNegativeRead = errors.New("bufio: reader returned negative count from Read")
98 // Read new data: try a limited number of times.
100 n, err := b.rd.Read(b.buf[b.w:])
123 // being valid at the next read call. If Peek returns fewer than n bytes, it
124 // also returns an error explaining why the read is short. The error is
185 // Read reads data into p.
186 // It returns the number of bytes read into p.
187 // The bytes are taken from at most one Read on the underlying Reader,
190 func (b *Reader) Read(p []byte) (n int, err error) {
200 // Large read, empty buffer.
201 // Read directly into p to avoid copy.
202 n, b.err = b.rd.Read(p)
212 // One read.
216 n, b.err = b.rd.Read(b.buf)
250 // UnreadByte unreads the last byte. Only the most recently read byte can be unread.
289 // UnreadRune unreads the last rune. If the most recent read operation on
292 // from any read operation.)
303 // Buffered returns the number of bytes that can be read from the current buffer.
308 // The bytes stop being valid at the next read.
366 // Calling UnreadByte after ReadLine will always unread the last byte read
407 // it returns the data read before the error and the error itself (often io.EOF).
454 // it returns the data read before the error and the error itself (often io.EOF).
464 // This may make multiple calls to the Read method of the underlying Reader.
703 m, err = r.Read(b.buf[b.n:])