Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for disks (0.21 sec)

  1. src/archive/zip/reader_test.go

    		// non-zero and only the second line above, the TOC,
    		// is what matters.
    	})
    }
    
    // rZipBytes returns the bytes of a recursive zip file, without
    // putting it on disk and triggering certain virus scanners.
    func rZipBytes() []byte {
    	s := `
    0000000 50 4b 03 04 14 00 00 00 08 00 08 03 64 3c f9 f4
    0000010 89 64 48 01 00 00 b8 01 00 00 07 00 00 00 72 2f
    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)
  2. src/archive/zip/writer.go

    		// zip64 end of central directory locator
    		b.uint32(directory64LocSignature)
    		b.uint32(0)           // number of the disk with the start of the zip64 end of central directory
    		b.uint64(uint64(end)) // relative offset of the zip64 end of central directory record
    		b.uint32(1)           // total number of disks
    
    		if _, err := w.cw.Write(buf[:]); err != nil {
    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)
  3. src/archive/tar/tar_test.go

    		for _, v := range vectors {
    			b.Run(v.label, func(b *testing.B) {
    				b.ReportAllocs()
    				for i := 0; i < b.N; i++ {
    					// Writing to io.Discard because we want to
    					// test purely the writer code and not bring in disk performance into this.
    					tw := NewWriter(io.Discard)
    					for _, file := range v.files {
    						if err := tw.WriteHeader(file.hdr); err != nil {
    							b.Errorf("unexpected WriteHeader error: %v", err)
    						}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top