Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NoEscape (0.06 sec)

  1. 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)
  2. 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)
Back to top