- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 947 for asSlice (0.11 sec)
-
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) -
test/fixedbugs/issue41500.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 17 02:30:22 UTC 2021 - 867 bytes - Viewed (0) -
test/fixedbugs/issue10135.go
// license that can be found in the LICENSE file. // Issue 10135: append a slice with zero-sized element used // to always return a slice with the same data pointer as the // old slice, even if it's nil, so this program used to panic // with nil pointer dereference because after append, s is a // slice with nil data pointer but non-zero len and cap. package main type empty struct{} func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 12 00:08:38 UTC 2015 - 597 bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/tests/convert_tf_xla_op_to_tf_op.mlir
// CHECK: %[[slice:.*]] = "tf.Slice"(%arg0, %[[tensor_scatter_update]], %[[arg2_i64]]) : (tensor<?x2xf32>, tensor<2xi64>, tensor<2xi64>) -> tensor<*xf32> // CHECK: %[[reshape:.*]] = "tf.Reshape"(%[[slice]], %[[cst_1]]) : (tensor<*xf32>, tensor<1xi64>) -> tensor<*xf32> // CHECK: return %[[reshape]] : tensor<*xf32> // ----- // Tests that the converted `tf.Slice` has the correct number of dimensions
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 3.7K bytes - Viewed (0) -
test/convert4.go
func() { _ = (*[9]byte)(s) }, "runtime error: cannot convert slice with length 8 to array or pointer to array with length 9", ) wantPanic( func() { _ = [9]byte(s) }, "runtime error: cannot convert slice with length 8 to array or pointer to array with length 9", ) var n []byte if p := (*[0]byte)(n); p != nil { panic("nil slice converted to *[0]byte should be nil") } _ = [0]byte(n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 18:58:26 UTC 2022 - 2.1K bytes - Viewed (0) -
pkg/slices/slices_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0) -
pkg/slices/slices.go
} // SortFunc sorts the slice x in ascending order as determined by the less function. // This sort is not guaranteed to be stable. // The slice is modified in place but returned. func SortFunc[E any](x []E, less func(a, b E) int) []E { if len(x) <= 1 { return x } slices.SortFunc(x, less) return x } // SortStableFunc sorts the slice x while keeping the original order of equal element.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 7.9K bytes - Viewed (0) -
src/cmd/compile/internal/staticdata/embed.go
if kind == embedBytes { objw.Uintptr(sym, off, uint64(size)) // cap for slice } case embedFiles: slicedata := v.Sym().Pkg.Lookup(v.Sym().Name + `.files`).Linksym() off := 0 // []files pointed at by Files off = objw.SymPtr(slicedata, off, slicedata, 3*types.PtrSize) // []file, pointing just past slice off = objw.Uintptr(slicedata, off, uint64(len(files)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 10 18:22:02 UTC 2023 - 4.8K bytes - Viewed (0) -
cmd/kube-controller-manager/app/options/endpointslicecontroller.go
fs.Int32Var(&o.MaxEndpointsPerSlice, "max-endpoints-per-slice", o.MaxEndpointsPerSlice, "The maximum number of endpoints that will be added to an EndpointSlice. More endpoints per slice will result in less endpoint slices, but larger resources. Defaults to 100.")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 03 07:16:42 UTC 2020 - 3.7K bytes - Viewed (0) -
pkg/apis/extensions/v1beta1/conversion.go
return err } if out.Ingress == nil { // Produce a zero-length non-nil slice for compatibility with previous manual conversion. out.Ingress = make([]networking.NetworkPolicyIngressRule, 0) } if out.Egress == nil { // Produce a zero-length non-nil slice for compatibility with previous manual conversion. out.Egress = make([]networking.NetworkPolicyEgressRule, 0) } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 8.1K bytes - Viewed (0)