Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for fSlice (0.14 sec)

  1. src/text/template/exec_test.go

    	// Slicing.
    	{"slice[:]", "{{slice .SI}}", "[3 4 5]", tVal, true},
    	{"slice[1:]", "{{slice .SI 1}}", "[4 5]", tVal, true},
    	{"slice[1:2]", "{{slice .SI 1 2}}", "[4]", tVal, true},
    	{"slice[-1:]", "{{slice .SI -1}}", "", tVal, false},
    	{"slice[1:-2]", "{{slice .SI 1 -2}}", "", tVal, false},
    	{"slice[1:2:-1]", "{{slice .SI 1 2 -1}}", "", tVal, false},
    	{"slice[2:1]", "{{slice .SI 2 1}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        }
      }
    
      // This function rewrites the original op into a series of slice and concat op
      // to produce the same result. It first slices the first `$index` rows. Then
      // expands the dimension of the `$item`, followed by another slice of the
      // remaining rows starting from `$index` + 1. Lastly it concatenates the
      // three parts together.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_messages.go

    	x[5] = uint8(certificateOctets >> 8)
    	x[6] = uint8(certificateOctets)
    
    	y := x[7:]
    	for _, slice := range m.certificates {
    		y[0] = uint8(len(slice) >> 16)
    		y[1] = uint8(len(slice) >> 8)
    		y[2] = uint8(len(slice))
    		copy(y[3:], slice)
    		y = y[3+len(slice):]
    	}
    
    	return x, nil
    }
    
    func (m *certificateMsg) unmarshal(data []byte) bool {
    	if len(data) < 7 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/proxier.go

    	// in every loop. Note that reuse the memory, instead of doing:
    	//   slice = <some new slice>
    	// you should always do one of the below:
    	//   slice = slice[:0] // and then append to it
    	//   slice = append(slice[:0], ...)
    	// To avoid growing this slice, we arbitrarily set its size to 64,
    	// there is never more than that many arguments for a single line.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  5. src/runtime/mheap.go

    	mp := acquirem()
    	span.ensureSwept()
    
    	offset := uintptr(p) - span.base()
    	kind := s.kind
    
    	lock(&span.speciallock)
    
    	// Find splice point, check for existing record.
    	iter, exists := span.specialFindSplicePoint(offset, kind)
    	if !exists {
    		// Splice in record, fill in offset.
    		s.offset = uint16(offset)
    		s.next = *iter
    		*iter = s
    		spanHasSpecials(span)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/parser.go

    			// with a "[" as in: P []E. In that case, simply parsing
    			// an expression would lead to an error: P[] is invalid.
    			// But since index or slice expressions are never constant
    			// and thus invalid array length expressions, if the name
    			// is followed by "[" it must be the start of an array or
    			// slice constraint. Only if we don't see a "[" do we
    			// need to parse a full expression. Notably, name <- x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	if err != nil {
    		return err
    	}
    	listVal, err := conversion.EnforcePtr(listPtr)
    	if err != nil {
    		return err
    	}
    	if listVal.Kind() != reflect.Slice {
    		return fmt.Errorf("need a pointer to slice, got %v", listVal.Kind())
    	}
    	filter := filterWithAttrsFunction(key, pred)
    
    	objs, readResourceVersion, indexUsed, err := c.listItems(ctx, listRV, key, pred, recursive)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  8. cmd/kube-controller-manager/app/options/options_test.go

    	"--leader-elect-renew-deadline=15s",
    	"--leader-elect-resource-lock=configmap",
    	"--leader-elect-retry-period=5s",
    	"--legacy-service-account-token-clean-up-period=8760h",
    	"--master=192.168.4.20",
    	"--max-endpoints-per-slice=200",
    	"--min-resync-period=8h",
    	"--mirroring-concurrent-service-endpoint-syncs=2",
    	"--mirroring-max-endpoints-per-subset=1000",
    	"--namespace-sync-period=10m",
    	"--node-cidr-mask-size=48",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    		}
    
    		if string(b) != tt.s {
    			t.Errorf("slice changed to %s; want %s", b, tt.s)
    		}
    		if len(tt.a) > 0 {
    			if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    				t.Errorf("last appended result was %s; want %s", x, want)
    			}
    		}
    	}
    }
    
    // Test case for any function which accepts and returns a byte slice.
    // For ease of creation, we write the input byte slice as a string.
    type StringTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/buildlist.go

    // The dependencies of the roots will be loaded lazily at the first call to the
    // Graph method.
    //
    // The rootModules slice must be sorted according to gover.ModSort.
    // The caller must not modify the rootModules slice or direct map after passing
    // them to newRequirements.
    //
    // If vendoring is in effect, the caller must invoke initVendor on the returned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
Back to top