Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for formats (2.55 sec)

  1. src/archive/tar/format.go

    	FormatGNU
    
    	// Schily's tar format, which is incompatible with USTAR.
    	// This does not cover STAR extensions to the PAX format; these fall under
    	// the PAX format.
    	formatSTAR
    
    	formatMax
    )
    
    func (f Format) has(f2 Format) bool   { return f&f2 != 0 }
    func (f *Format) mayBe(f2 Format)     { *f |= f2 }
    func (f *Format) mayOnlyBe(f2 Format) { *f &= f2 }
    func (f *Format) mustNotBe(f2 Format) { *f &^= f2 }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  2. src/archive/tar/tar_test.go

    		formats: FormatUSTAR | FormatPAX | FormatGNU,
    	}}
    
    	for i, v := range vectors {
    		formats, paxHdrs, err := v.header.allowedFormats()
    		if formats != v.formats {
    			t.Errorf("test %d, allowedFormats(): got %v, want %v", i, formats, v.formats)
    		}
    		if formats&FormatPAX > 0 && !reflect.DeepEqual(paxHdrs, v.paxHdrs) && !(len(paxHdrs) == 0 && len(v.paxHdrs) == 0) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    			wantFormat.mayBe(FormatUSTAR) // PAX implies USTAR allowed too
    		}
    		format.mayOnlyBe(wantFormat) // Set union of formats allowed and format wanted
    	}
    	if format == FormatUnknown {
    		switch h.Format {
    		case FormatUSTAR:
    			err = headerError{"Format specifies USTAR", whyNoUSTAR, whyOnlyPAX, whyOnlyGNU}
    		case FormatPAX:
    			err = headerError{"Format specifies PAX", whyNoPAX, whyOnlyGNU}
    		case FormatGNU:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  4. src/archive/zip/reader.go

    		// determining whether extended timestamps are present.
    		// This is necessary for users that need to do additional time
    		// calculations when dealing with legacy ZIP formats.
    		if f.ModifiedTime != 0 || f.ModifiedDate != 0 {
    			f.Modified = modified.In(timeZone(msdosModified.Sub(modified)))
    		}
    	}
    
    	// Assume that uncompressed size 2³²-1 could plausibly happen in
    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)
  5. src/builtin/builtin.go

    func recover() any
    
    // The print built-in function formats its arguments in an
    // implementation-specific way and writes the result to standard error.
    // Print is useful for bootstrapping and debugging; it is not guaranteed
    // to stay in the language.
    func print(args ...Type)
    
    // The println built-in function formats its arguments in an
    // implementation-specific way and writes the result to standard error.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    	k, v, ok = strings.Cut(rec, "=")
    	if !ok {
    		return "", "", s, ErrHeader
    	}
    
    	if !validPAXRecord(k, v) {
    		return "", "", s, ErrHeader
    	}
    	return k, v, rem, nil
    }
    
    // formatPAXRecord formats a single PAX record, prefixing it with the
    // appropriate length.
    func formatPAXRecord(k, v string) (string, error) {
    	if !validPAXRecord(k, v) {
    		return "", ErrHeader
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  7. src/archive/tar/reader_test.go

    		}
    		return sps
    	}
    
    	makeInput := func(format Format, size string, sps ...string) (out []byte) {
    		// Write the initial GNU header.
    		var blk block
    		gnu := blk.toGNU()
    		sparse := gnu.sparse()
    		copy(gnu.realSize(), size)
    		sps = populateSparseMap(sparse, sps)
    		if format != FormatUnknown {
    			blk.setFormat(format)
    		}
    		out = append(out, blk[:]...)
    
    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)
  8. src/archive/tar/writer.go

    		}
    	}
    
    	// Round ModTime and ignore AccessTime and ChangeTime unless
    	// the format is explicitly chosen.
    	// This ensures nominal usage of WriteHeader (without specifying the format)
    	// does not always result in the PAX format being chosen, which
    	// causes a 1KiB increase to every header.
    	if tw.hdr.Format == FormatUnknown {
    		tw.hdr.ModTime = tw.hdr.ModTime.Round(time.Second)
    		tw.hdr.AccessTime = time.Time{}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  9. src/cmd/asm/main.go

    	var ok, diag bool
    	var failedFile string
    	for _, f := range flag.Args() {
    		lexer := lex.NewLexer(f)
    		parser := asm.NewParser(ctxt, architecture, lexer)
    		ctxt.DiagFunc = func(format string, args ...interface{}) {
    			diag = true
    			log.Printf(format, args...)
    		}
    		if *flags.SymABIs {
    			ok = parser.ParseSymABIs(buf)
    		} else {
    			pList := new(obj.Plist)
    			pList.Firstpc, ok = parser.Parse()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  10. src/cmd/cgo/godefs.go

    			n := refName[&s.Type]
    			if n != nil && n.Mangle != "" {
    				override[n.Mangle] = s.Name.Name
    			}
    		}
    	}
    
    	// Extend overrides using typedefs:
    	// If we know that C.xxx should format as T
    	// and xxx is a typedef for yyy, make C.yyy format as T.
    	for typ, def := range typedef {
    		if new := override[typ]; new != "" {
    			if id, ok := def.Go.(*ast.Ident); ok {
    				override[id.Name] = new
    			}
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
Back to top