- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,679 for Appendp (0.59 sec)
-
src/strings/builder.go
b.grow(n) } } // Write appends the contents of p to b's buffer. // Write always returns len(p), nil. func (b *Builder) Write(p []byte) (int, error) { b.copyCheck() b.buf = append(b.buf, p...) return len(p), nil } // WriteByte appends the byte c to b's buffer. // The returned error is always nil. func (b *Builder) WriteByte(c byte) error { b.copyCheck() b.buf = append(b.buf, c) return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 3.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 49.7K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins0.go
_ = append(s, "foo"...) _ = append(S(s), "foo" /* ERRORx `cannot use .* in argument to append` */ ) _ = append(S(s), "foo"...) _ = append(s, t /* ERROR "cannot use t" */ ) _ = append(s, t...) _ = append(s, T("foo")...) _ = append(S(s), t /* ERROR "cannot use t" */ ) _ = append(S(s), t...) _ = append(S(s), T("foo")...) _ = append([]string{}, t /* ERROR "cannot use t" */ , "foo") _ = append([]T{}, t, "foo") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0) -
src/os/exec_windows.go
if inquote && len(cmd) > 1 && cmd[1] == '"' { b = append(b, c) cmd = cmd[1:] } inquote = !inquote } else { b = append(b, c) } nslash = 0 continue case '\\': nslash++ continue } b = appendBSBytes(b, nslash) nslash = 0 b = append(b, c) } return appendBSBytes(b, nslash), "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 5K bytes - Viewed (0) -
src/fmt/print.go
p.doPrintf(format, a) s := string(p.buf) p.free() return s } // Appendf formats according to a format specifier, appends the result to the byte // slice, and returns the updated slice. func Appendf(b []byte, format string, a ...any) []byte { p := newPrinter() p.doPrintf(format, a) b = append(b, p.buf...) p.free() return b } // These routines do not take a format string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/expvar/expvar.go
mayAppendNewline = func(b []byte) []byte { return append(b, '\n') } } b = append(b, '{') b = mayAppendNewline(b) first := true v.Do(func(kv KeyValue) { if !first { b = append(b, ',', afterCommaDelim) } first = false b = appendJSONQuote(b, kv.Key) b = append(b, ':', ' ') switch v := kv.Value.(type) { case nil: b = append(b, "null"...) case jsonVar: b = v.appendJSON(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 21:32:11 UTC 2024 - 9.1K bytes - Viewed (0) -
src/cmd/trace/tasks.go
if summary.Start != nil { rawEvents = append(rawEvents, summary.Start) } if summary.End != nil { rawEvents = append(rawEvents, summary.End) } rawEvents = append(rawEvents, summary.Logs...) for _, r := range summary.Regions { if r.Start != nil { rawEvents = append(rawEvents, r.Start) } if r.End != nil { rawEvents = append(rawEvents, r.End) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 11.8K bytes - Viewed (0) -
src/net/netip/netip.go
if x >= 0x1000 { b = append(b, digits[x>>12]) } if x >= 0x100 { b = append(b, digits[x>>8&0xf]) } if x >= 0x10 { b = append(b, digits[x>>4&0xf]) } return append(b, digits[x&0xf]) } // appendHexPad appends the fully padded hex string representation of x to b. func appendHexPad(b []byte, x uint16) []byte {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 43.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/framer/framer.go
data = append(data[0:0], r.remaining...) r.remaining = nil return n, nil } n = len(data) //nolint:staticcheck // SA4006,SA4010 underlying array of data is modified here. data = append(data[0:0], r.remaining[:n]...) r.remaining = r.remaining[n:] return n, io.ErrShortBuffer } // RawMessage#Unmarshal appends to data - we reset the slice down to 0 and will either see
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 13:33:12 UTC 2024 - 4.9K bytes - Viewed (0) -
src/cmd/vet/vet_test.go
matched = true } else { out = append(out, errmsg) } } if !matched { errs = append(errs, fmt.Errorf("%s:%d: no match for %#q in:\n\t%s", we.file, we.lineNum, we.reStr, strings.Join(out[n:], "\n\t"))) continue } } if len(out) > 0 { errs = append(errs, fmt.Errorf("Unmatched Errors:")) for _, errLine := range out { errs = append(errs, fmt.Errorf("%s", errLine)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 12.5K bytes - Viewed (0)