Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for tryReadFull (0.05 seconds)

  1. src/archive/tar/reader.go

    func mustReadFull(r io.Reader, b []byte) (int, error) {
    	n, err := tryReadFull(r, b)
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	return n, err
    }
    
    // tryReadFull is like io.ReadFull except it returns
    // io.EOF when it is hit before len(b) bytes are read.
    func tryReadFull(r io.Reader, b []byte) (n int, err error) {
    	for len(b) > n && err == nil {
    		var nn int
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Oct 07 19:46:36 GMT 2025
    - 26.9K bytes
    - Click Count (0)
Back to Top