Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkUnsafeStringData (0.37 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: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top