Home | History | Annotate | Download | only in io

Lines Matching defs:EOF

33 // EOF is the error returned by Read when no more input is available.
34 // Functions should return EOF only to signal a graceful end of input.
35 // If the EOF occurs unexpectedly in a structured data stream,
38 var EOF = errors.New("EOF")
40 // ErrUnexpectedEOF means that EOF was encountered in the
42 var ErrUnexpectedEOF = errors.New("unexpected EOF")
63 // return either err == EOF or err == nil. The next Read should
64 // return 0, EOF.
69 // allowed EOF behaviors.
74 // nothing happened; in particular it does not indicate EOF.
165 // ReadFrom reads data from r until EOF or error.
167 // Any error except io.EOF encountered during the read is also returned.
201 // input source, ReadAt may return either err == EOF or err == nil.
298 // The error is EOF only if no bytes were read.
299 // If an EOF happens after reading fewer than min bytes,
314 } else if n > 0 && err == EOF {
322 // The error is EOF only if no bytes were read.
323 // If an EOF happens after reading some but not all the bytes,
343 // src stopped early; must have been EOF.
344 err = EOF
349 // Copy copies from src to dst until either EOF is reached
353 // A successful Copy returns err == nil, not err == EOF.
354 // Because Copy is defined to read from src until EOF, it does
355 // not treat an EOF from Read as an error to be reported.
416 if er != EOF {
426 // but stops with EOF after n bytes.
433 // Read returns EOF when N <= 0 or when the underlying R returns EOF.
441 return 0, EOF
452 // starting at offset off and stops with EOF after n bytes.
468 return 0, EOF
501 return 0, EOF
508 err = EOF