Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FileReader (0.18 sec)

  1. src/archive/tar/reader_test.go

    			testWriteTo{fileOps{int64(1), "abc", int64(2), "defgh", int64(4)}, 15, errUnrefData},
    			testRead{100, "", errUnrefData},
    			testRemaining{0, 5},
    		},
    	}}
    
    	for i, v := range vectors {
    		var fr fileReader
    		switch maker := v.maker.(type) {
    		case makeReg:
    			r := testNonEmptyReader{strings.NewReader(maker.str)}
    			fr = &regFileReader{r, maker.size}
    		case makeSparse:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    		b[0x11]++
    		b[0x9d]++
    
    		// TODO(bradfitz): add a new test that only corrupts
    		// one of these values, and verify that that's also an
    		// error. Currently, the reader code doesn't verify the
    		// fileheader and TOC's crc32 match if they're both
    		// non-zero and only the second line above, the TOC,
    		// is what matters.
    	})
    }
    
    // rZipBytes returns the bytes of a recursive zip file, without
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top