Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 32 of 32 for Chan (0.13 sec)

  1. src/bufio/scan_test.go

    			break
    		}
    	}
    	if got, want := scanner.Err(), ErrBadReadCount; got != want {
    		t.Errorf("scanner.Err: got %v, want %v", got, want)
    	}
    }
    
    // largeReader returns an invalid count that is larger than the number
    // of bytes requested.
    type largeReader struct{}
    
    func (largeReader) Read(p []byte) (int, error) {
    	return len(p) + 1, nil
    }
    
    // Test that the scanner doesn't panic and returns ErrBadReadCount
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/archive/zip/writer.go

    	}
    
    	return w.writeDataDescriptor()
    }
    
    func (w *fileWriter) writeDataDescriptor() error {
    	if !w.hasDataDescriptor() {
    		return nil
    	}
    	// Write data descriptor. This is more complicated than one would
    	// think, see e.g. comments in zipfile.c:putextended() and
    	// https://bugs.openjdk.org/browse/JDK-7073588.
    	// The approach here is to write 8 byte sizes if needed without
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top