Home | History | Annotate | Download | only in io

Lines Matching defs:Read

28 // ErrClosedPipe is the error used for read or write operations on a closed pipe.
29 var ErrClosedPipe = errors.New("io: read/write on closed pipe")
43 func (p *pipe) Read(b []byte) (n int, err error) {
116 // A PipeReader is the read half of a pipe.
121 // Read implements the standard Read interface:
126 func (r *PipeReader) Read(data []byte) (n int, err error) {
127 return r.p.Read(data)
149 // have consumed all the data or the read end is closed.
150 // If the read end is closed with an error, that err is
157 // read half of the pipe will return no bytes and EOF.
163 // read half of the pipe will return no bytes and the error err,
181 // Read (or Reads); there is no internal buffering.
183 // It is safe to call Read and Write in parallel with each other or with Close.
184 // Parallel calls to Read and parallel calls to Write are also safe: