- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 947 for asSlice (0.14 sec)
-
src/go/types/index.go
if x.mode != variable { check.errorf(x, NonSliceableOperand, invalidOp+"cannot slice %s (value not addressable)", x) x.mode = invalid return } x.typ = &Slice{elem: u.elem} case *Pointer: if u, _ := under(u.base).(*Array); u != nil { valid = true length = u.len x.typ = &Slice{elem: u.elem} } case *Slice: valid = true // x.typ doesn't change } if !valid {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:17:05 UTC 2024 - 11.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
} switch n.Op() { default: base.FatalfAt(n.Pos(), "mayCall %+v", n) case ir.OCALLFUNC, ir.OCALLINTER, ir.OUNSAFEADD, ir.OUNSAFESLICE: return true case ir.OINDEX, ir.OSLICE, ir.OSLICEARR, ir.OSLICE3, ir.OSLICE3ARR, ir.OSLICESTR, ir.ODEREF, ir.ODOTPTR, ir.ODOTTYPE, ir.ODYNAMICDOTTYPE, ir.ODIV, ir.OMOD, ir.OSLICE2ARR, ir.OSLICE2ARRPTR: // These ops might panic, make sure they are done
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/sort/example_interface_test.go
{"Michael", 17}, {"Jenny", 26}, } fmt.Println(people) // There are two ways to sort a slice. First, one can define // a set of methods for the slice type, as with ByAge, and // call sort.Sort. In this first example we use that technique. sort.Sort(ByAge(people)) fmt.Println(people) // The other way is to use sort.Slice with a custom Less // function, which can be provided as a closure. In this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 24 14:40:37 UTC 2017 - 1.5K bytes - Viewed (0) -
src/syscall/dir_plan9.go
// returning the remaining slice of b.. func pstring(b []byte, s string) []byte { b = pbit16(b, uint16(len(s))) n := copy(b, s) return b[n:] } // gbit8 reads an 8-bit number from b and returns it with the remaining slice of b. func gbit8(b []byte) (uint8, []byte) { return uint8(b[0]), b[1:] } // gbit16 reads a 16-bit number in little-endian order from b and returns it with the remaining slice of b. // //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:32:38 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 25 06:44:08 UTC 2021 - 6.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/crypto/crypto.go
) // CreateRandBytes returns a cryptographically secure slice of random bytes with a given size func CreateRandBytes(size uint32) ([]byte, error) { bytes := make([]byte, size) if _, err := rand.Read(bytes); err != nil { return nil, err } return bytes, nil } // EncryptBytes takes a byte slice of raw data and an encryption key and returns an encrypted byte slice of data.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jul 04 08:41:27 UTC 2021 - 2.1K bytes - Viewed (0) -
test/fixedbugs/issue5515.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 03:23:21 UTC 2013 - 597 bytes - Viewed (0) -
test/typeparam/issue47896.go
package main import ( "database/sql" ) // Collection generic interface which things can be added to. type Collection[T any] interface { Add(T) } // Slice generic slice implementation of a Collection type Slice[T any] []*T func (s *Slice[T]) Add(t *T) { *s = append(*s, t) } type Scanner interface { Scan(...interface{}) error } type Mapper[T any] func(s Scanner, t T) error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_data_fuse_map_and_batch.mlir
// CHECK: %[[NPC:.*]] = "tf.Const"() <{value = dense<1> : tensor<i64>}> // CHECK: %[[TSLICE:.*]] = "tf.TensorSliceDataset" %3 = "tf.TensorSliceDataset"(%2) {device = "", output_shapes = [#tf_type.shape<>], metadata = ""} : (tensor<3xi32>) -> tensor<*x!tf_type.variant> // CHECK: "tf.MapAndBatchDataset"(%[[TSLICE]], %[[BSIZE:.*]], %[[NPC]] // CHECK-SAME: f = @"__inference_Dataset_map_<lambda>_80",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 1.9K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_an.py
assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_inactive_user(): response = client.get("/users/me", headers={"Authorization": "Bearer alice"}) assert response.status_code == 400, response.text assert response.json() == {"detail": "Inactive user"} def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8K bytes - Viewed (0)