Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkUnsafeStringData (0.08 sec)

  1. src/cmd/cgo/gcc.go

    	fmt.Fprintf(sbCheck, "_cgoCheckPointer(_cgoSlice%d, 0 == 0); ", i)
    
    	return true
    }
    
    // checkUnsafeStringData checks for a call to unsafe.StringData.
    // The result of that call can't contain a pointer so there is
    // no need to call _cgoCheckPointer.
    func (p *Package) checkUnsafeStringData(arg ast.Expr) bool {
    	x := arg
    	for {
    		c, ok := x.(*ast.CallExpr)
    		if !ok || len(c.Args) != 1 {
    			break
    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