- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for appendInt (0.16 sec)
-
src/time/format.go
buf = append(buf, ", "...) buf = appendInt(buf, hour, 0) buf = append(buf, ", "...) buf = appendInt(buf, minute, 0) buf = append(buf, ", "...) buf = appendInt(buf, second, 0) buf = append(buf, ", "...) buf = appendInt(buf, t.Nanosecond(), 0) buf = append(buf, ", "...) switch loc := t.Location(); loc { case UTC, nil: buf = append(buf, "time.UTC"...) case Local:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:28 UTC 2024 - 49.3K bytes - Viewed (0) -
src/strconv/itoa.go
return s } // Itoa is equivalent to [FormatInt](int64(i), 10). func Itoa(i int) string { return FormatInt(int64(i), 10) } // AppendInt appends the string form of the integer i, // as generated by [FormatInt], to dst and returns the extended buffer. func AppendInt(dst []byte, i int64, base int) []byte { if fastSmalls && 0 <= i && i < nSmalls && base == 10 { return append(dst, small(int(i))...) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 5.3K bytes - Viewed (0) -
src/strconv/doc.go
// // s := strconv.FormatBool(true) // s := strconv.FormatFloat(3.1415, 'E', -1, 64) // s := strconv.FormatInt(-42, 16) // s := strconv.FormatUint(42, 16) // // [AppendBool], [AppendFloat], [AppendInt], and [AppendUint] are similar but // append the formatted value to a destination slice. // // # String Conversions // // [Quote] and [QuoteToASCII] convert strings to quoted Go string literals.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1.9K bytes - Viewed (0) -
utils/utils.go
frame, _ := frames.Next() if (!strings.HasPrefix(frame.File, gormSourceDir) || strings.HasSuffix(frame.File, "_test.go")) && !strings.HasSuffix(frame.File, ".gen.go") { return string(strconv.AppendInt(append([]byte(frame.File), ':'), int64(frame.Line), 10)) } } return "" } func IsValidDBNameChar(c rune) bool {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 22 06:43:02 UTC 2024 - 3.8K bytes - Viewed (0) -
cmd/batch-handlers_gen.go
// string "lu" o = append(o, 0xa2, 0x6c, 0x75) o = msgp.AppendTime(o, z.LastUpdate) // string "ra" o = append(o, 0xa2, 0x72, 0x61) o = msgp.AppendInt(o, z.RetryAttempts) // string "at" o = append(o, 0xa2, 0x61, 0x74) o = msgp.AppendInt(o, z.Attempts) // string "cmp" o = append(o, 0xa3, 0x63, 0x6d, 0x70) o = msgp.AppendBool(o, z.Complete) // string "fld" o = append(o, 0xa3, 0x66, 0x6c, 0x64)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon May 06 20:27:52 UTC 2024 - 18.6K bytes - Viewed (0) -
cmd/object-api-datatypes_gen.go
o = msgp.AppendInt(o, z.PartNumberMarker) // string "NextPartNumberMarker" o = append(o, 0xb4, 0x4e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) o = msgp.AppendInt(o, z.NextPartNumberMarker) // string "MaxParts" o = append(o, 0xa8, 0x4d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x74, 0x73) o = msgp.AppendInt(o, z.MaxParts) // string "IsTruncated"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 70.1K bytes - Viewed (0) -
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) -
src/archive/tar/writer.go
// Format the sparse map. hdr.Size = 0 // Replace with encoded size spb = append(strconv.AppendInt(spb, int64(len(spd)), 10), '\n') for _, s := range spd { hdr.Size += s.Length spb = append(strconv.AppendInt(spb, s.Offset, 10), '\n') spb = append(strconv.AppendInt(spb, s.Length, 10), '\n') } pad := blockPadding(int64(len(spb))) spb = append(spb, zeroBlock[:pad]...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
src/expvar/expvar.go
} func (v *Int) Value() int64 { return v.i.Load() } func (v *Int) String() string { return string(v.appendJSON(nil)) } func (v *Int) appendJSON(b []byte) []byte { return strconv.AppendInt(b, v.i.Load(), 10) } func (v *Int) Add(delta int64) { v.i.Add(delta) } func (v *Int) Set(value int64) { v.i.Store(value) } // Float is a 64-bit float variable that satisfies the [Var] interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 21:32:11 UTC 2024 - 9.1K bytes - Viewed (0) -
cmd/xl-storage-format-v2_gen.go
o = msgp.AppendUint8(o, uint8(z.ErasureAlgorithm)) // string "EcM" o = append(o, 0xa3, 0x45, 0x63, 0x4d) o = msgp.AppendInt(o, z.ErasureM) // string "EcN" o = append(o, 0xa3, 0x45, 0x63, 0x4e) o = msgp.AppendInt(o, z.ErasureN) // string "EcBSize" o = append(o, 0xa7, 0x45, 0x63, 0x42, 0x53, 0x69, 0x7a, 0x65) o = msgp.AppendInt64(o, z.ErasureBlockSize) // string "EcIndex"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 29 19:14:09 UTC 2024 - 53.8K bytes - Viewed (0)