Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for UncompressedSize64 (0.25 sec)

  1. src/archive/zip/struct.go

    	// does not fit in 32 bits, CompressedSize is set to ^uint32(0).
    	//
    	// Deprecated: Use UncompressedSize64 instead.
    	UncompressedSize uint32
    
    	// CompressedSize64 is the compressed size of the file in bytes.
    	CompressedSize64 uint64
    
    	// UncompressedSize64 is the uncompressed size of the file in bytes.
    	UncompressedSize64 uint64
    
    	Extra         []byte
    	ExternalAttrs uint32 // Meaning depends on CreatorVersion
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  2. src/archive/zip/zip_test.go

    	}
    	if got, want := fh2.UncompressedSize, wantUncompressedSize; got != want {
    		t.Errorf("UncompressedSize: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.UncompressedSize64, wantUncompressedSize64; got != want {
    		t.Errorf("UncompressedSize64: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.ModifiedTime, fh.ModifiedTime; got != want {
    		t.Errorf("ModifiedTime: got %d, want %d\n", got, want)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  3. src/archive/zip/writer.go

    	fh.CompressedSize64 = uint64(w.compCount.count)
    	fh.UncompressedSize64 = uint64(w.rawCount.count)
    
    	if fh.isZip64() {
    		fh.CompressedSize = uint32max
    		fh.UncompressedSize = uint32max
    		fh.ReaderVersion = zipVersion45 // requires 4.5 - File uses ZIP64 format extensions
    	} else {
    		fh.CompressedSize = uint32(fh.CompressedSize64)
    		fh.UncompressedSize = uint32(fh.UncompressedSize64)
    	}
    
    	return w.writeDataDescriptor()
    }
    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)
  4. src/archive/zip/writer_test.go

    			t.Errorf("%s: got CompressedSize64 %d; want %d", want.name, got.CompressedSize64, want.compressedSize)
    		}
    		if got.UncompressedSize64 != want.uncompressedSize {
    			t.Errorf("%s: got UncompressedSize64 %d; want %d", want.name, got.UncompressedSize64, want.uncompressedSize)
    		}
    
    		r, err := got.Open()
    		if err != nil {
    			t.Errorf("%s: Open err = %v", got.Name, err)
    			continue
    		}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  5. cmd/s3-zip-handlers.go

    	// New object info
    	fileObjInfo := ObjectInfo{
    		Bucket:      bucket,
    		Name:        object,
    		Size:        int64(file.UncompressedSize64),
    		ModTime:     zipObjInfo.ModTime,
    		ContentType: mime.TypeByExtension(filepath.Ext(object)),
    	}
    
    	var rc io.ReadCloser
    
    	if file.UncompressedSize64 > 0 {
    		// There may be number of header bytes before the content.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. src/archive/zip/reader_test.go

    	}
    
    	testFileMode(t, f, ft.Mode)
    
    	size := uint64(f.UncompressedSize)
    	if size == uint32max {
    		size = f.UncompressedSize64
    	} else if size != f.UncompressedSize64 {
    		t.Errorf("%v: UncompressedSize=%#x does not match UncompressedSize64=%#x", f.Name, size, f.UncompressedSize64)
    	}
    
    	// Check that OpenRaw returns the correct byte segment
    	rw, err := f.OpenRaw()
    	if err != nil {
    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)
  7. lib/time/mkzip.go

    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    			CRC32:              crc32.ChecksumIEEE(data),
    		})
    		if err != nil {
    			log.Fatal(err)
    		}
    		if _, err := w.Write(data); err != nil {
    			log.Fatal(err)
    		}
    		seen[name] = true
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/archive/zip/reader.go

    	if r.err != nil {
    		return 0, r.err
    	}
    	n, err = r.rc.Read(b)
    	r.hash.Write(b[:n])
    	r.nread += uint64(n)
    	if r.nread > r.f.UncompressedSize64 {
    		return 0, ErrFormat
    	}
    	if err == nil {
    		return
    	}
    	if err == io.EOF {
    		if r.nread != r.f.UncompressedSize64 {
    			return 0, io.ErrUnexpectedEOF
    		}
    		if r.desr != nil {
    			if err1 := readDataDescriptor(r.desr, r.f); err1 != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_test.go

    		t.Fatal(err)
    	}
    	var vers [][]xlMetaV2ShallowVersion
    	zr, err := zip.NewReader(bytes.NewReader(dataZ), int64(len(dataZ)))
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, file := range zr.File {
    		if file.UncompressedSize64 == 0 {
    			continue
    		}
    		in, err := file.Open()
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer in.Close()
    		buf, err := io.ReadAll(in)
    		if err != nil {
    			t.Fatal(err)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  10. api/go1.1.txt

    pkg archive/zip, const Deflate = 8
    pkg archive/zip, const Store = 0
    pkg archive/zip, type FileHeader struct, CompressedSize64 uint64
    pkg archive/zip, type FileHeader struct, UncompressedSize64 uint64
    pkg bufio, const MaxScanTokenSize = 65536
    pkg bufio, const MaxScanTokenSize ideal-int
    pkg bufio, func NewScanner(io.Reader) *Scanner
    pkg bufio, func ScanBytes([]uint8, bool) (int, []uint8, error)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top