Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ReadError (0.25 sec)

  1. src/compress/flate/inflate.go

    func (e InternalError) Error() string { return "flate: internal error: " + string(e) }
    
    // A ReadError reports an error encountered while reading input.
    //
    // Deprecated: No longer returned.
    type ReadError struct {
    	Offset int64 // byte offset where error occurred
    	Err    error // error returned by underlying Read
    }
    
    func (e *ReadError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  2. src/compress/gzip/gunzip_test.go

    					t.Errorf("NewReader(%s-%d) on truncated stream: got %v, want %v", tc.name, i, err, io.ErrUnexpectedEOF)
    				}
    				continue
    			}
    			_, err = io.Copy(io.Discard, r)
    			if ferr, ok := err.(*flate.ReadError); ok {
    				err = ferr.Err
    			}
    			if err != io.ErrUnexpectedEOF {
    				t.Errorf("io.Copy(%s-%d) on truncated stream: got %v, want %v", tc.name, i, err, io.ErrUnexpectedEOF)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 12 15:06:07 UTC 2022
    - 19.5K bytes
    - Viewed (0)
  3. src/io/io_test.go

    // the subsequent Write also results in an error, the error from Write
    // is returned, as it is the one that prevented progressing further.
    func TestCopyReadErrWriteErr(t *testing.T) {
    	er, ew := errors.New("readError"), errors.New("writeError")
    	r, w := zeroErrReader{err: er}, errWriter{err: ew}
    	n, err := Copy(w, r)
    	if n != 0 || err != ew {
    		t.Errorf("Copy(zeroErrReader, errWriter) = %d, %v; want 0, writeError", n, err)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:04:41 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"InternalError", Type, 0},
    		{"NewReader", Func, 0},
    		{"NewReaderDict", Func, 0},
    		{"NewWriter", Func, 0},
    		{"NewWriterDict", Func, 0},
    		{"NoCompression", Const, 0},
    		{"ReadError", Type, 0},
    		{"ReadError.Err", Field, 0},
    		{"ReadError.Offset", Field, 0},
    		{"Reader", Type, 0},
    		{"Resetter", Type, 4},
    		{"WriteError", Type, 0},
    		{"WriteError.Err", Field, 0},
    		{"WriteError.Offset", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg compress/flate, method (InternalError) Error() string
    pkg compress/flate, type CorruptInputError int64
    pkg compress/flate, type InternalError string
    pkg compress/flate, type ReadError struct
    pkg compress/flate, type ReadError struct, Err error
    pkg compress/flate, type ReadError struct, Offset int64
    pkg compress/flate, type Reader interface { Read, ReadByte }
    pkg compress/flate, type Reader interface, Read([]uint8) (int, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  6. api/go1.16.txt

    pkg archive/zip, type FileHeader struct, ModifiedDate //deprecated
    pkg archive/zip, type FileHeader struct, ModifiedTime //deprecated
    pkg archive/zip, type FileHeader struct, UncompressedSize //deprecated
    pkg compress/flate, type ReadError //deprecated
    pkg compress/flate, type WriteError //deprecated
    pkg crypto/rc4, method (*Cipher) Reset //deprecated
    pkg crypto/tls, const VersionSSL30 //deprecated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
Back to top