- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 392 for asSlice (0.28 sec)
-
test/fixedbugs/issue19323.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 23 19:41:41 UTC 2021 - 460 bytes - Viewed (0) -
src/internal/types/testdata/check/go1_19.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Check Go language version-specific errors. package p type Slice []byte type Array [8]byte var s Slice
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 343 bytes - Viewed (0) -
src/internal/types/testdata/check/go1_21_19.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Check Go language version-specific errors. //go:build go1.19 package p type Slice []byte type Array [8]byte var s Slice
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 16:08:31 UTC 2023 - 362 bytes - Viewed (0) -
test/fixedbugs/issue35291.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Check error message for duplicated index in slice literal package p var s = []string{ 1: "dup", 1: "dup", // ERROR "duplicate index in slice literal: 1|duplicate value for index 1|duplicate index 1"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 383 bytes - Viewed (0) -
test/fixedbugs/issue46938.go
"unsafe" ) func main() { defer func() { err := recover() if err == nil { panic("expected panic") } if got := err.(error).Error(); !strings.Contains(got, "slice bounds out of range") { panic("expected panic slice out of bound, got " + got) } }() s := make([]int64, 100) p := unsafe.Pointer(&s[0]) n := 1000 _ = (*[10]int64)(p)[:n:n]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 25 01:57:42 UTC 2021 - 584 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) //sys setfsgid(gid int) (prev int, err error) //sys setfsuid(uid int) (prev int, err error) //sys Shutdown(fd int, how int) (err error) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) func Stat(path string, stat *Stat_t) (err error) { // Use fstatat, because Android's seccomp policy blocks stat.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 5.3K bytes - Viewed (0) -
test/typeparam/mapimp.dir/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a // Map calls the function f on every element of the slice s, // returning a new slice of the results. func Mapper[F, T any](s []F, f func(F) T) []T { r := make([]T, len(s)) for i, v := range s { r[i] = f(v) } return r
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 397 bytes - Viewed (0) -
src/runtime/metrics/sample.go
} // Implemented in the runtime. func runtime_readMetrics(unsafe.Pointer, int, int) // Read populates each [Value] field in the given slice of metric samples. // // Desired metrics should be present in the slice with the appropriate name. // The user of this API is encouraged to re-use the same slice between calls for // efficiency, but is not required to do so. // // Note that re-use has some caveats. Notably, Values should not be read or
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:59:11 UTC 2023 - 1.7K bytes - Viewed (0) -
pilot/pkg/util/network/ip.go
return resolvedAddr, nil } // AllIPv6 checks the addresses slice and returns true if all addresses // are valid IPv6 address, for all other cases it returns false. func AllIPv6(ipAddrs []string) bool { for i := 0; i < len(ipAddrs); i++ { addr, err := netip.ParseAddr(ipAddrs[i]) if err != nil { // Should not happen, invalid IP in proxy's IPAddresses slice should have been caught earlier, // skip it to prevent a panic.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 21:27:21 UTC 2023 - 6.3K bytes - Viewed (0) -
test/fixedbugs/issue29312.go
// something of type *pwn. The way arg passing in Go works, the // backing store pointer for the outer slice becomes the "this" // pointer of the String method, which points to the inner []*pwn // slice. The String method then modifies the length of that inner // slice. package main import "fmt" type pwn struct { a [3]uint } func (this *pwn) String() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 4.1K bytes - Viewed (0)