Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 947 for asSlice (0.15 sec)

  1. cni/pkg/nodeagent/testdata/cgroupns/1/cgroup

    0::/system.slice/docker-8445c3ca20fac1d8e74854d84a7e6a57297ffb22809098b2816b31a428f2b777.scope/kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-besteffort.slice/kubelet-kubepods-besteffort-pod863b91d4_4b68_4efa_917f_4b560e3e86aa.slice/cri-containerd-75c7fe7ad0df679971e755bd97b84dd68a32e1eba8e8f99b01ab3c07196a3e4a.scope...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 326 bytes
    - Viewed (0)
  2. test/unsafebuiltins.go

    	}
    
    	// unsafe.Slice
    	{
    		s := unsafe.Slice(&p[0], len(p))
    		assert(&s[0] == &p[0])
    		assert(len(s) == len(p))
    		assert(cap(s) == len(p))
    
    		// nil pointer with zero length returns nil
    		assert(unsafe.Slice((*int)(nil), 0) == nil)
    
    		// nil pointer with positive length panics
    		mustPanic(func() { _ = unsafe.Slice((*int)(nil), 1) })
    
    		// negative length
    		var neg int = -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/errors/errors_test.go

    	if err != nil {
    		t.Errorf("expected nil, got %#v", err)
    	}
    
    	// Append a non-nil error
    	slice = append(slice, fmt.Errorf("err"))
    	agg = NewAggregate(slice)
    	if agg == nil {
    		t.Errorf("expected non-nil")
    	}
    	if s := agg.Error(); s != "err" {
    		t.Errorf("expected 'err', got %q", s)
    	}
    	if s := agg.Errors(); len(s) != 1 {
    		t.Errorf("expected one-element slice, got %#v", s)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 13:16:21 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  4. src/internal/reflectlite/swapper.go

    // slice.
    //
    // Swapper panics if the provided interface is not a slice.
    func Swapper(slice any) func(i, j int) {
    	v := ValueOf(slice)
    	if v.Kind() != Slice {
    		panic(&ValueError{Method: "Swapper", Kind: v.Kind()})
    	}
    	// Fast path for slices of size 0 and 1. Nothing to swap.
    	switch v.Len() {
    	case 0:
    		return func(i, j int) { panic("reflect: slice index out of range") }
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/net/mail/example_test.go

    	"log"
    	"net/mail"
    	"strings"
    )
    
    func ExampleParseAddressList() {
    	const list = "Alice <alice@example.com>, Bob <******@****.***>, Eve <******@****.***>"
    	emails, err := mail.ParseAddressList(list)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	for _, v := range emails {
    		fmt.Println(v.Name, v.Address)
    	}
    
    	// Output:
    	// Alice alice@example.com
    	// Bob ******@****.***
    	// Eve ******@****.***
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typebits/typebits.go

    		// If we ever have a moving GC, we need to change this for 2b (as
    		// well as scan itabs to update their itab._type fields).
    		bv.Set(int32(off/int64(types.PtrSize) + 1)) // pointer in second slot
    
    	case types.TSLICE:
    		// struct { byte *array; uintgo len; uintgo cap; }
    		if off&int64(types.PtrSize-1) != 0 {
    			base.Fatalf("typebits.Set: invalid TARRAY alignment, %v", t)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. test/complit1.go

    var (
    	_ = [3]int{1, 2, 3}[:] // ERROR "slice of unaddressable value"
    	_ = m[0][:]            // ERROR "slice of unaddressable value"
    	_ = f()[:]             // ERROR "slice of unaddressable value"
    
    	_ = 301[:]  // ERROR "cannot slice|attempt to slice object that is not"
    	_ = 3.1[:]  // ERROR "cannot slice|attempt to slice object that is not"
    	_ = true[:] // ERROR "cannot slice|attempt to slice object that is not"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 02 05:14:45 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      When the procession came opposite to Alice, they all stopped
    and looked at her, and the Queen said severely `Who is this?'
    She said it to the Knave of Hearts, who only bowed and smiled in reply.
    
      `Idiot!' said the Queen, tossing her head impatiently; and,
    turning to Alice, she went on, `What's your name, child?'
    
      `My name is Alice, so please your Majesty,' said Alice very
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 145.2K bytes
    - Viewed (0)
  9. test/used.go

    	float32(x)             // ERROR "float32\(x\) .* not used"
    	I(t)                   // ERROR "I\(t\) .* not used"
    	int(x)                 // ERROR "int\(x\) .* not used"
    	copy(slice, slice)     // ok
    	_ = copy(slice, slice) // ok
    	delete(m, 1)           // ok
    	_ = delete(m, 1)       // ERROR "delete\(m, 1\) .*used as value"
    	t.X                    // ERROR "t.X .* not used"
    	tp.X                   // ERROR "tp.X .* not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 28 08:39:17 UTC 2020
    - 6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list-enable-dynamic-update-slice.mlir

    // RUN: tf-opt "-tfl-lower-static-tensor-list=allow-tensorlist-pass-through default-to-single-batch enable-dynamic-update-slice" -split-input-file %s | FileCheck %s
    
    // -----
    
    // CHECK-LABEL: tensorlistSetItem
    func.func @tensorlistSetItem(%arg0: tensor<3x10xf32>, %arg1: tensor<1xi32>, %arg2: tensor<i32>, %arg3: tensor<10xf32>) -> tensor<3x10xf32> {
      %0 = "tf.TensorListFromTensor"(%arg0, %arg1) : (tensor<3x10xf32>, tensor<1xi32>) -> tensor<!tf_type.variant<tensor<10xf32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 14:24:59 UTC 2022
    - 2K bytes
    - Viewed (0)
Back to top