Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,317 for append1 (0.18 sec)

  1. test/escape_reflect.go

    func append1(s []int, x int) []int { // ERROR "leaking param: s$"
    	sv := reflect.ValueOf(s)     // ERROR "s escapes to heap"
    	xv := reflect.ValueOf(x)     // ERROR "x escapes to heap"
    	rv := reflect.Append(sv, xv) // ERROR "... argument does not escape"
    	return rv.Interface().([]int)
    }
    
    // Unfortunate: s doesn't need escape, only leak to result.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go

    	defer qs.lock.Unlock()
    	d := debug.QueueSetDump{
    		Queues:                     make([]debug.QueueDump, len(qs.queues)),
    		QueuelessExecutingRequests: SetMapReduce(dumpRequest(includeRequestDetails), append1[debug.RequestDump])(qs.requestsExecutingSet),
    		Waiting:                    qs.totRequestsWaiting,
    		Executing:                  qs.totRequestsExecuting,
    		SeatsInUse:                 qs.totSeatsInUse,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 16:59:21 UTC 2024
    - 42.4K bytes
    - Viewed (0)
  4. src/log/log.go

    	if flag&Lmsgprefix == 0 {
    		*buf = append(*buf, prefix...)
    	}
    	if flag&(Ldate|Ltime|Lmicroseconds) != 0 {
    		if flag&LUTC != 0 {
    			t = t.UTC()
    		}
    		if flag&Ldate != 0 {
    			year, month, day := t.Date()
    			itoa(buf, year, 4)
    			*buf = append(*buf, '/')
    			itoa(buf, int(month), 2)
    			*buf = append(*buf, '/')
    			itoa(buf, day, 2)
    			*buf = append(*buf, ' ')
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Joiner.java

              appendable.append(joiner.separator);
              Entry<?, ?> e = parts.next();
              appendable.append(joiner.toString(e.getKey()));
              appendable.append(keyValueSeparator);
              appendable.append(joiner.toString(e.getValue()));
            }
          }
          return appendable;
        }
    
        /**
         * Appends the string representation of each entry in {@code entries}, using the previously
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Joiner.java

              appendable.append(joiner.separator);
              Entry<?, ?> e = parts.next();
              appendable.append(joiner.toString(e.getKey()));
              appendable.append(keyValueSeparator);
              appendable.append(joiner.toString(e.getValue()));
            }
          }
          return appendable;
        }
    
        /**
         * Appends the string representation of each entry in {@code entries}, using the previously
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/TreeFormatter.java

                    append(value.toString());
                } else {
                    appendValues((Object[]) value);
                }
            } else if (value instanceof String) {
                append("'");
                append(value.toString());
                append("'");
            } else {
                append(value.toString());
            }
            return this;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    		panic(b.err)
    	}
    	return b.result[b.offset:]
    }
    
    // AddUint8 appends an 8-bit value to the byte string.
    func (b *Builder) AddUint8(v uint8) {
    	b.add(byte(v))
    }
    
    // AddUint16 appends a big-endian, 16-bit value to the byte string.
    func (b *Builder) AddUint16(v uint16) {
    	b.add(byte(v>>8), byte(v))
    }
    
    // AddUint24 appends a big-endian, 24-bit value to the byte string. The highest
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  9. src/fmt/print.go

    	s := string(p.buf)
    	p.free()
    	return s
    }
    
    // Appendln formats using the default formats for its operands, appends the result
    // to the byte slice, and returns the updated slice. Spaces are always added
    // between operands and a newline is appended.
    func Appendln(b []byte, a ...any) []byte {
    	p := newPrinter()
    	p.doPrintln(a)
    	b = append(b, p.buf...)
    	p.free()
    	return b
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/issues0.go

    	_ = append(f0(), f2 /* ERROR "multiple-value f2" */ ()...)
    
    	// variadic user-defined function
    	append_(f0())
    	append_(f0(), f0()...)
    	append_(f1())
    	append_(f2 /* ERRORx `cannot use .* in argument` */ ())
    	append_(f2()... /* ERROR "cannot use ..." */ )
    	append_(f0(), f1 /* ERROR "multiple-value f1" */ ())
    	append_(f0(), f2 /* ERROR "multiple-value f2" */ ())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top