- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for slicedata (0.14 sec)
-
src/internal/types/testdata/fixedbugs/issue64406.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 20:34:33 UTC 2023 - 403 bytes - Viewed (0) -
pkg/proxy/endpointslicecache.go
} change := &endpointsChange{} change.previous = cache.getEndpointsMap(serviceNN, esTracker.applied) for name, sliceData := range esTracker.pending { if sliceData.remove { delete(esTracker.applied, name) } else { esTracker.applied[name] = sliceData } delete(esTracker.pending, name) } change.current = cache.getEndpointsMap(serviceNN, esTracker.applied)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:07:21 UTC 2024 - 11.7K bytes - Viewed (0) -
src/internal/syscall/unix/arc4random_darwin.go
func ARC4Random(p []byte) { // macOS 11 and 12 abort if length is 0. if len(p) == 0 { return } syscall_syscall(abi.FuncPCABI0(libc_arc4random_buf_trampoline), uintptr(unsafe.Pointer(unsafe.SliceData(p))), uintptr(len(p)), 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:02:21 UTC 2024 - 633 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/cache.go
func toString(b []byte) string { // unsafe.SliceData relies on cap whereas we want to rely on len if len(b) == 0 { return "" } // Copied from go 1.20.1 strings.Builder.String // https://github.com/golang/go/blob/202a1a57064127c3f19d96df57b9f9586145e21c/src/strings/builder.go#L48 return unsafe.String(unsafe.SliceData(b), len(b))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 19:25:52 UTC 2023 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache.go
func toString(b []byte) string { // unsafe.SliceData relies on cap whereas we want to rely on len if len(b) == 0 { return "" } // Copied from go 1.20.1 strings.Builder.String // https://github.com/golang/go/blob/202a1a57064127c3f19d96df57b9f9586145e21c/src/strings/builder.go#L48 return unsafe.String(unsafe.SliceData(b), len(b))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 31 20:26:58 UTC 2023 - 3.5K bytes - Viewed (0) -
src/go/types/builtins_test.go
{"Slice", `type B *byte; var b B; _ = unsafe.Slice(b, 0)`, `func(*byte, int) []byte`}, {"SliceData", "var s []int; _ = unsafe.SliceData(s)", `func([]int) *int`}, {"SliceData", "type S []int; var s S; _ = unsafe.SliceData(s)", `func([]int) *int`}, {"String", `var p *byte; _ = unsafe.String(p, 1)`, `func(*byte, int) string`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 10.9K bytes - Viewed (0) -
src/unsafe/unsafe.go
func Slice(ptr *ArbitraryType, len IntegerType) []ArbitraryType // SliceData returns a pointer to the underlying array of the argument // slice. // - If cap(slice) > 0, SliceData returns &slice[:1][0]. // - If slice == nil, SliceData returns nil. // - Otherwise, SliceData returns a non-nil pointer to an // unspecified memory address. func SliceData(slice []ArbitraryType) *ArbitraryType
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 19:45:20 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins_test.go
{"Slice", `type B *byte; var b B; _ = unsafe.Slice(b, 0)`, `func(*byte, int) []byte`}, {"SliceData", "var s []int; _ = unsafe.SliceData(s)", `func([]int) *int`}, {"SliceData", "type S []int; var s S; _ = unsafe.SliceData(s)", `func([]int) *int`}, {"String", `var p *byte; _ = unsafe.String(p, 1)`, `func(*byte, int) string`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 18:06:31 UTC 2024 - 10.8K bytes - Viewed (0) -
src/cmd/compile/internal/staticdata/data.go
// and then fix up length and content to use file. symdata = slicedata(pos, "") symdata.Size = size symdata.Type = objabi.SNOPTRDATA info := symdata.NewFileInfo() info.Name = file info.Size = size } return symdata, size, nil } var slicedataGen int func slicedata(pos src.XPos, s string) *obj.LSym { slicedataGen++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:08:50 UTC 2023 - 10.3K bytes - Viewed (0) -
src/runtime/pprof/vminfo_darwin.go
} func regionFilename(address uint64) string { buf := make([]byte, _MAXPATHLEN) r := proc_regionfilename( os.Getpid(), address, unsafe.SliceData(buf), int64(cap(buf))) if r == 0 { return "" } return string(buf[:r]) } // mach_vm_region and proc_regionfilename are implemented by // the runtime package (runtime/sys_darwin.go). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 04 23:35:39 UTC 2023 - 2K bytes - Viewed (0)