- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for unsafe (0.21 sec)
-
src/arena/arena.go
} //go:linkname runtime_arena_newArena func runtime_arena_newArena() unsafe.Pointer //go:linkname runtime_arena_arena_New func runtime_arena_arena_New(arena unsafe.Pointer, typ any) any // Mark as noescape to avoid escaping the slice header. // //go:noescape //go:linkname runtime_arena_arena_Slice func runtime_arena_arena_Slice(arena unsafe.Pointer, slice any, cap int) //go:linkname runtime_arena_arena_Free
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Oct 12 20:23:36 GMT 2022 - 4.3K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/reflect/61308.md
The [SliceAt(typ Type, p unsafe.Pointer, len int)] function returns a Value representing a slice whose underlying array starts
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Apr 12 20:57:18 GMT 2024 - 170 bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback_windows.go
} BackTrace[i] = (PVOID)(ControlPc); } return i; #else return 0; #endif } */ import "C" import ( "internal/testenv" "reflect" "runtime" "strings" "testing" "unsafe" ) // Test that the stack can be unwound through a call out and call back // into Go. func testCallbackCallersSEH(t *testing.T) { testenv.SkipIfOptimizationOff(t) // This test requires inlining.
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Nov 29 16:01:37 GMT 2023 - 2.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/backdoor.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgotest import _ "unsafe" //go:linkname lockedOSThread runtime.lockedOSThread //extern runtime_lockedOSThread
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 307 bytes - Viewed (0) -
misc/cgo/gmp/gmp.go
} p := C.CString(s) defer C.free(unsafe.Pointer(p)) if C.mpz_set_str(&z.i[0], p, C.int(base)) < 0 { return os.ErrInvalid } return nil } // String returns the decimal representation of z. func (z *Int) String() string { if z == nil { return "nil" } z.doinit() p := C.mpz_get_str(nil, 10, &z.i[0]) s := C.GoString(p) C.free(unsafe.Pointer(p)) return s }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 9.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue21897.go
xCFNumberRef = C.CFNumberCreate(C.kCFAllocatorSystemDefault, C.kCFNumberSInt64Type, unsafe.Pointer(&v)) //fmt.Printf("CFNumberRef: %x\n", uintptr(unsafe.Pointer(xCFNumberRef))) } var xCFNumberRef C.CFNumberRef func testCFDateRef() { xCFDateRef = C.CFDateCreate(C.kCFAllocatorSystemDefault, 0) // 0 value is 1 Jan 2001 00:00:00 GMT //fmt.Printf("CFDateRef: %x\n", uintptr(unsafe.Pointer(xCFDateRef))) } var xCFDateRef C.CFDateRef
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 1.4K bytes - Viewed (0) -
api/next/61308.txt
pkg reflect, func SliceAt(Type, unsafe.Pointer, int) Value #61308...
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Tue Apr 02 21:51:18 GMT 2024 - 66 bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/callback/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "os" ) func main() { if len(os.Args) != 2 { fatal("usage: callback testname") } switch os.Args[1] { default: fatal("unknown test %q", os.Args[1]) case "Call": testCall() case "Callback": testCallback() } println("OK") }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 1K bytes - Viewed (0) -
src/bootstrap.bash
# # See also golang.org/x/build/cmd/genbootstrap, which is used # to generate bootstrap tgz files for builders. set -e if [ "$GOOS" = "" -o "$GOARCH" = "" ]; then echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash [-force]" >&2 exit 2 fi forceflag="" if [ "$1" = "-force" ]; then forceflag=-force shift fi targ="../../go-${GOOS}-${GOARCH}-bootstrap" if [ -e $targ ]; then
Shell Script - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Jan 20 17:52:26 GMT 2023 - 2.3K bytes - Viewed (0) -
src/cmd/buildid/buildid.go
"os" "strings" "cmd/internal/buildid" ) func usage() { fmt.Fprintf(os.Stderr, "usage: go tool buildid [-w] file\n") flag.PrintDefaults() os.Exit(2) } var wflag = flag.Bool("w", false, "write build ID") func main() { log.SetPrefix("buildid: ") log.SetFlags(0) flag.Usage = usage flag.Parse() if flag.NArg() != 1 { usage() } file := flag.Arg(0) id, err := buildid.ReadFile(file)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Jun 06 14:30:53 GMT 2022 - 1.5K bytes - Viewed (0)