Home | History | Annotate | Download | only in io

Lines Matching defs:Read

34 		n, gerr := mr.Read(buf[0:size])
223 func (f readerFunc) Read(p []byte) (int, error) {
238 // Test that MultiReader properly flattens chained multiReaders when Read is called
243 var readDepth int // will contain the depth from which fakeReader.Read was called
255 r.Read(nil) // don't care about errors, just want to check the call-depth for Read
257 if readDepth != myDepth+2 { // 2 should be multiReader.Read and fakeReader.Read
264 // byte) and io.EOF at once in its Read call.
267 func (b byteAndEOFReader) Read(p []byte) (n int, err error) {
269 // Read(0 bytes) is useless. We expect no such useless
290 // chain continues to return EOF on its final read, rather than
295 n, err := r.Read(buf)