- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NoEscape (0.19 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
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 12 20:23:36 UTC 2022 - 4.3K bytes - Viewed (0) -
src/cmd/cgo/doc.go
then this is unnecessary. The #cgo noescape directive may be used to tell the compiler that no Go pointers escape via the named C function. If the noescape directive is used and the C function does not handle the pointer safely, the program may crash or see memory corruption. For example: // #cgo noescape cFunctionName
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Oct 01 22:52:54 UTC 2024 - 44K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
} return s } // ProcessCgoDirectives processes the import C preamble: // 1. discards all #cgo CFLAGS, LDFLAGS, nocallback and noescape directives, // so they don't make their way into _cgo_export.h. // 2. parse the nocallback and noescape directives. func (f *File) ProcessCgoDirectives() { linesIn := strings.Split(f.Preamble, "\n") linesOut := make([]string, 0, len(linesIn))
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 18 15:07:34 UTC 2024 - 97.1K bytes - Viewed (0)