- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 43 for hdrs (0.02 sec)
-
internal/bucket/bandwidth/reader.go
hdr := r.opts.HeaderSize // remaining header bytes var tokens int // number of tokens to request if hdr > 0 { // available tokens go towards header first if hdr < b { // all of header can be accommodated r.opts.HeaderSize = 0 need = int(math.Min(float64(b-hdr), float64(need))) // use remaining tokens towards payload tokens = need + hdr } else { // part of header can be accommodatedRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 3.3K bytes - Viewed (0) -
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 Dec 30 11:13:12 UTC 2025 - Last Modified: Mon Feb 03 16:38:43 UTC 2025 - 19.7K bytes - Viewed (0) -
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 Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Oct 07 19:46:36 UTC 2025 - 26.9K bytes - Viewed (0) -
src/archive/tar/fuzz_test.go
header *Header content []byte } files := []file{} for { hdr, err := r.Next() if err == io.EOF { break } if err != nil { return } buf := bytes.NewBuffer(nil) if _, err := io.Copy(buf, r); err != nil { continue } files = append(files, file{header: hdr, content: buf.Bytes()}) } // If we were unable to read anything out of the archive don't
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Jan 13 18:06:33 UTC 2022 - 2.2K bytes - Viewed (0) -
src/archive/tar/example_test.go
{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"}, {"todo.txt", "Get animal handling license."}, } for _, file := range files { hdr := &tar.Header{ Name: file.Name, Mode: 0600, Size: int64(len(file.Body)), } if err := tw.WriteHeader(hdr); err != nil { log.Fatal(err) } if _, err := tw.Write([]byte(file.Body)); err != nil { log.Fatal(err) } }Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Nov 16 16:54:08 UTC 2017 - 1.4K bytes - Viewed (0) -
src/archive/tar/testdata/hdr-only.tar
Joe Tsai <******@****.***> 1446603151 -0800
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Dec 01 20:16:26 UTC 2015 - 10K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
private static byte[] buildHeader(int status) { byte[] hdr = new byte[64]; // SMB2 header is 64 bytes System.arraycopy(SMBUtil.SMB2_HEADER, 0, hdr, 0, 64); // Write Status (little-endian) at offset 8 in the SMB2 header SMBUtil.writeInt4(status, hdr, 8); // Write Command = SMB2_IOCTL (0x000B) at offset 12 SMBUtil.writeInt2(0x000B, hdr, 12); // Mark as server response to be realistic (optional)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
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.26 Go 1.26 added a new `httpcookiemaxnum` setting that controls the maximum number
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Wed Dec 03 00:18:09 UTC 2025 - 24.7K bytes - Viewed (0) -
src/archive/tar/testdata/pax-path-hdr.tar
Joe Tsai <******@****.***> 1443691829 -0700
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Fri Nov 06 04:31:26 UTC 2015 - 1K bytes - Viewed (0) -
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 Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0)