- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for AppendUint (0.11 sec)
-
src/crypto/x509/oid.go
if valEnd { if start == 0 { if val < 80 { b.Write(strconv.AppendUint(numBuf, val/40, 10)) b.WriteByte('.') b.Write(strconv.AppendUint(numBuf, val%40, 10)) } else { b.WriteString("2.") b.Write(strconv.AppendUint(numBuf, val-80, 10)) } } else { b.Write(strconv.AppendUint(numBuf, val, 10)) } val = 0 start = i + 1 } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 19:10:38 UTC 2024 - 8.3K bytes - Viewed (0) -
src/strconv/itoa.go
return dst } // AppendUint appends the string form of the unsigned integer i, // as generated by [FormatUint], to dst and returns the extended buffer. func AppendUint(dst []byte, i uint64, base int) []byte { if fastSmalls && i < nSmalls && base == 10 { return append(dst, small(int(i))...) } dst, _ = formatBits(dst, i, base, false, true) return dst }
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) -
internal/bucket/replication/datatypes_gen.go
err = msgp.WrapError(err) return } return } // MarshalMsg implements msgp.Marshaler func (z Type) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendInt(o, int(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *Type) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 int zb0001, bts, err = msgp.ReadIntBytes(bts)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 2.3K 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) -
src/net/http/http.go
} b := make([]byte, 0, newLen) var pos int for i := 0; i < len(s); i++ { if s[i] >= utf8.RuneSelf { if pos < i { b = append(b, s[pos:i]...) } b = append(b, '%') b = strconv.AppendInt(b, int64(s[i]), 16) pos = i + 1 } } if pos < len(s) { b = append(b, s[pos:]...) } return string(b) } // NoBody is an [io.ReadCloser] with no bytes. Read always returns EOF
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 5.1K bytes - Viewed (0) -
cmd/bootstrap-peer-server_gen.go
o = msgp.Require(b, z.Msgsize()) // map header, size 3 // string "NEndpoints" o = append(o, 0x83, 0xaa, 0x4e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73) o = msgp.AppendInt(o, z.NEndpoints) // string "CmdLines" o = append(o, 0xa8, 0x43, 0x6d, 0x64, 0x4c, 0x69, 0x6e, 0x65, 0x73) o = msgp.AppendArrayHeader(o, uint32(len(z.CmdLines))) for za0001 := range z.CmdLines {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jan 24 21:36:44 UTC 2024 - 6.4K 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)