Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for AppendUint (0.31 sec)

  1. src/bytes/buffer_test.go

    	}
    }
    
    func TestWriteAppend(t *testing.T) {
    	var got Buffer
    	var want []byte
    	for i := 0; i < 1000; i++ {
    		b := got.AvailableBuffer()
    		b = strconv.AppendInt(b, int64(i), 10)
    		want = strconv.AppendInt(want, int64(i), 10)
    		got.Write(b)
    	}
    	if !Equal(got.Bytes(), want) {
    		t.Fatalf("Bytes() = %q, want %q", got, want)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. cmd/background-newdisks-heal-ops_gen.go

    	o = append(o, 0xa9, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78)
    	o = msgp.AppendInt(o, z.PoolIndex)
    	// string "SetIndex"
    	o = append(o, 0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78)
    	o = msgp.AppendInt(o, z.SetIndex)
    	// string "DiskIndex"
    	o = append(o, 0xa9, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x6e, 0x64, 0x65, 0x78)
    	o = msgp.AppendInt(o, z.DiskIndex)
    	// string "Path"
    	o = append(o, 0xa4, 0x50, 0x61, 0x74, 0x68)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 28 17:05:40 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  3. src/net/http/cookie.go

    	if validCookieExpires(c.Expires) {
    		b.WriteString("; Expires=")
    		b.Write(c.Expires.UTC().AppendFormat(buf[:0], TimeFormat))
    	}
    	if c.MaxAge > 0 {
    		b.WriteString("; Max-Age=")
    		b.Write(strconv.AppendInt(buf[:0], int64(c.MaxAge), 10))
    	} else if c.MaxAge < 0 {
    		b.WriteString("; Max-Age=0")
    	}
    	if c.HttpOnly {
    		b.WriteString("; HttpOnly")
    	}
    	if c.Secure {
    		b.WriteString("; Secure")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. cmd/bucket-replication-metrics_gen.go

    	// map header, size 3
    	// string "Curr"
    	o = append(o, 0x83, 0xa4, 0x43, 0x75, 0x72, 0x72)
    	o = msgp.AppendInt(o, z.Curr)
    	// string "Avg"
    	o = append(o, 0xa3, 0x41, 0x76, 0x67)
    	o = msgp.AppendFloat32(o, z.Avg)
    	// string "Max"
    	o = append(o, 0xa3, 0x4d, 0x61, 0x78)
    	o = msgp.AppendInt(o, z.Max)
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. src/time/format_test.go

    		{0, 9, "000000000"},
    		{123, 9, "000000123"},
    		{123456, 9, "000123456"},
    		{123456789, 9, "123456789"},
    	}
    	var got []byte
    	for _, tt := range tests {
    		got = AppendInt(got[:0], tt.in, tt.width)
    		if string(got) != tt.want {
    			t.Errorf("appendInt(%d, %d) = %s, want %s", tt.in, tt.width, got, tt.want)
    		}
    	}
    }
    
    type FormatTest struct {
    	name   string
    	format string
    	result string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  6. internal/etag/etag.go

    	var n int64
    	h := md5.New()
    	for _, etag := range etags {
    		if !etag.IsMultipart() && !etag.IsEncrypted() {
    			h.Write(etag)
    			n++
    		}
    	}
    	etag := append(h.Sum(nil), '-')
    	return strconv.AppendInt(etag, n, 10)
    }
    
    // Set adds the ETag to the HTTP headers. It overwrites any
    // existing ETag entry.
    //
    // Due to legacy S3 clients, that make incorrect assumptions
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/fmt/print.go

    		if state.Flag(int(c)) { // The argument is an int for historical reasons.
    			b = append(b, byte(c))
    		}
    	}
    	if w, ok := state.Width(); ok {
    		b = strconv.AppendInt(b, int64(w), 10)
    	}
    	if p, ok := state.Precision(); ok {
    		b = append(b, '.')
    		b = strconv.AppendInt(b, int64(p), 10)
    	}
    	b = utf8.AppendRune(b, verb)
    	return string(b)
    }
    
    // Use simple []byte instead of bytes.Buffer to avoid large dependency.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    				}
    			}
    		}
    	}
    
    	return "", fmt.Errorf("can't find path for %v in %s", obj, pkg.Path())
    }
    
    func appendOpArg(path []byte, op byte, arg int) []byte {
    	path = append(path, op)
    	path = strconv.AppendInt(path, int64(arg), 10)
    	return path
    }
    
    // concreteMethod returns the path for meth, which must have a non-nil receiver.
    // The second return value indicates success and may be false if the method is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. cmd/site-replication-metrics_gen.go

    	o = append(o, 0xa9, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73)
    	o = msgp.AppendMapHeader(o, uint32(len(z.ErrCounts)))
    	for za0001, za0002 := range z.ErrCounts {
    		o = msgp.AppendString(o, za0001)
    		o = msgp.AppendInt(o, za0002)
    	}
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *RTimedMetrics) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 40.6K bytes
    - Viewed (0)
Back to top