Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CreatorVersion (0.1 sec)

  1. src/archive/zip/struct.go

    		mode |= fs.ModeDir
    	}
    	return mode
    }
    
    // SetMode changes the permission and mode bits for the [FileHeader].
    func (h *FileHeader) SetMode(mode fs.FileMode) {
    	h.CreatorVersion = h.CreatorVersion&0xff | creatorUnix<<8
    	h.ExternalAttrs = fileModeToUnixMode(mode) << 16
    
    	// set MSDOS attributes too, as the original zip does.
    	if mode&fs.ModeDir != 0 {
    		h.ExternalAttrs |= msdosDir
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. src/archive/zip/writer.go

    	switch {
    	case fh.NonUTF8:
    		fh.Flags &^= 0x800
    	case (utf8Require1 || utf8Require2) && (utf8Valid1 && utf8Valid2):
    		fh.Flags |= 0x800
    	}
    
    	fh.CreatorVersion = fh.CreatorVersion&0xff00 | zipVersion20 // preserve compatibility byte
    	fh.ReaderVersion = zipVersion20
    
    	// If Modified is set, this takes precedence over MS-DOS timestamp fields.
    	if !fh.Modified.IsZero() {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. src/archive/zip/reader.go

    	if _, err := io.ReadFull(r, buf[:]); err != nil {
    		return err
    	}
    	b := readBuf(buf[:])
    	if sig := b.uint32(); sig != directoryHeaderSignature {
    		return ErrFormat
    	}
    	f.CreatorVersion = b.uint16()
    	f.ReaderVersion = b.uint16()
    	f.Flags = b.uint16()
    	f.Method = b.uint16()
    	f.ModifiedTime = b.uint16()
    	f.ModifiedDate = b.uint16()
    	f.CRC32 = b.uint32()
    	f.CompressedSize = b.uint32()
    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