Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hasDataDescriptor (0.09 sec)

  1. src/archive/zip/writer.go

    	b.uint16(h.ModifiedDate)
    	// In raw mode (caller does the compression), the values are either
    	// written here or in the trailing data descriptor based on the header
    	// flags.
    	if h.raw && !h.hasDataDescriptor() {
    		b.uint32(h.CRC32)
    		b.uint32(uint32(min(h.CompressedSize64, uint32max)))
    		b.uint32(uint32(min(h.UncompressedSize64, uint32max)))
    	} else {
    		// When this package handle the compression, these values are
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. src/archive/zip/struct.go

    // isZip64 reports whether the file size exceeds the 32 bit limit
    func (h *FileHeader) isZip64() bool {
    	return h.CompressedSize64 >= uint32max || h.UncompressedSize64 >= uint32max
    }
    
    func (h *FileHeader) hasDataDescriptor() bool {
    	return h.Flags&0x8 != 0
    }
    
    func msdosModeToFileMode(m uint32) (mode fs.FileMode) {
    	if m&msdosDir != 0 {
    		mode = fs.ModeDir | 0777
    	} else {
    		mode = 0666
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/archive/zip/reader.go

    	dcomp := f.zip.decompressor(f.Method)
    	if dcomp == nil {
    		return nil, ErrAlgorithm
    	}
    	var rc io.ReadCloser = dcomp(r)
    	var desr io.Reader
    	if f.hasDataDescriptor() {
    		desr = io.NewSectionReader(f.zipr, f.headerOffset+bodyOffset+size, dataDescriptorLen)
    	}
    	rc = &checksumReader{
    		rc:   rc,
    		hash: crc32.NewIEEE(),
    		f:    f,
    		desr: desr,
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top