Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for hdr (0.02 sec)

  1. src/archive/tar/testdata/hdr-only.tar

    Joe Tsai <******@****.***> 1446603151 -0800
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Dec 01 20:16:26 UTC 2015
    - 10K bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    		t.Fatal(err)
    	}
    
    	hdr, err := FileInfoHeader(fileinfo, "")
    	if err != nil {
    		t.Fatalf("os.Stat:1 %v", err)
    	}
    
    	// some sample data
    	chineseFilename := "文件名"
    	chineseGroupname := "組"
    	chineseUsername := "用戶名"
    
    	hdr.Name = chineseFilename
    	hdr.Gname = chineseGroupname
    	hdr.Uname = chineseUsername
    
    	contents := strings.Repeat(" ", int(hdr.Size))
    
    	var buf bytes.Buffer
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    	modTime := hdr.ModTime
    	if modTime.IsZero() {
    		modTime = time.Unix(0, 0)
    	}
    
    	v7 := tw.blk.toV7()
    	v7.typeFlag()[0] = hdr.Typeflag
    	fmtStr(v7.name(), hdr.Name)
    	fmtStr(v7.linkName(), hdr.Linkname)
    	fmtNum(v7.mode(), hdr.Mode)
    	fmtNum(v7.uid(), int64(hdr.Uid))
    	fmtNum(v7.gid(), int64(hdr.Gid))
    	fmtNum(v7.size(), hdr.Size)
    	fmtNum(v7.modTime(), modTime.Unix())
    
    	ustar := tw.blk.toUSTAR()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. src/archive/tar/reader.go

    	}
    
    	var p parser
    	hdr := new(Header)
    
    	// Unpack the V7 header.
    	v7 := tr.blk.toV7()
    	hdr.Typeflag = v7.typeFlag()[0]
    	hdr.Name = p.parseString(v7.name())
    	hdr.Linkname = p.parseString(v7.linkName())
    	hdr.Size = p.parseNumeric(v7.size())
    	hdr.Mode = p.parseNumeric(v7.mode())
    	hdr.Uid = int(p.parseNumeric(v7.uid()))
    	hdr.Gid = int(p.parseNumeric(v7.gid()))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    				}
    				chksums = append(chksums, fmt.Sprintf("%x", h.Sum(nil)))
    			}
    
    			for i, hdr := range hdrs {
    				if i >= len(v.headers) {
    					t.Fatalf("entry %d: unexpected header:\ngot %+v", i, *hdr)
    				}
    				if !reflect.DeepEqual(*hdr, *v.headers[i]) {
    					t.Fatalf("entry %d: incorrect header:\ngot  %+v\nwant %+v", i, *hdr, *v.headers[i])
    				}
    			}
    			if len(hdrs) != len(v.headers) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  6. cmd/object-api-options.go

    		metadata = make(map[string]string)
    	}
    
    	wantCRC, err := hash.GetContentChecksum(hdr)
    	if err != nil {
    		return opts, fmt.Errorf("invalid/unknown checksum sent: %v", err)
    	}
    	etag := strings.TrimSpace(hdr.Get(xhttp.MinIOSourceETag))
    
    	if crypto.S3KMS.IsRequested(hdr) {
    		keyID, context, err := crypto.S3KMS.ParseHTTP(hdr)
    		if err != nil {
    			return ObjectOptions{}, err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. doc/godebug.md

    for compatibility reasons.
    Packages or programs may define additional settings for internal debugging purposes;
    for example,
    see the [runtime documentation](/pkg/runtime#hdr-Environment_Variables)
    and the [go command documentation](/cmd/go#hdr-Build_and_test_caching).
    
    ### Go 1.24
    
    Go 1.24 changed the global [`math/rand.Seed`](/pkg/math/rand/#Seed) to be a
    no-op. This behavior is controlled by the `randseednop` setting.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 28 14:46:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. src/archive/tar/tar_test.go

    	var b bytes.Buffer
    	tw := NewWriter(&b)
    	hdr := &Header{
    		Name:       "file.txt",
    		Uid:        1 << 21, // Too big for 8 octal digits
    		Size:       int64(len(data)),
    		ModTime:    time.Now().Round(time.Second),
    		PAXRecords: map[string]string{"uid": "2097152"},
    		Format:     FormatPAX,
    		Typeflag:   TypeReg,
    	}
    	if err := tw.WriteHeader(hdr); err != nil {
    		t.Fatalf("tw.WriteHeader: %v", err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. internal/grid/connection.go

    			}
    			if int64(cap(dst)) < hdr.Length+1 {
    				dst = make([]byte, 0, hdr.Length+hdr.Length>>3)
    			}
    			if !hdr.Fin {
    				hdr.Length = -1
    			}
    			return readAllInto(dst[:0], &wsReader, hdr.Length)
    		}
    	}
    
    	// Keep reusing the same buffer.
    	var msg []byte
    	for atomic.LoadUint32((*uint32)(&c.state)) == StateConnected {
    		if cap(msg) > readBufferSize*4 {
    			// Don't keep too much memory around.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  10. cmd/handler-utils.go

    }
    
    func extractMetadata(ctx context.Context, mimesHeader ...textproto.MIMEHeader) (metadata map[string]string, err error) {
    	metadata = make(map[string]string)
    
    	for _, hdr := range mimesHeader {
    		// Extract all query values.
    		err = extractMetadataFromMime(ctx, hdr, metadata)
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	// Set content-type to default value if it is not set.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top