github.com/hsfzxjy/dgo/go@v0.2.0/noescape.go (about)

     1  package dgo
     2  
     3  import "unsafe"
     4  
     5  //go:nosplit
     6  func noescape(p *Dart_CObject) *Dart_CObject {
     7  	x := uintptr(unsafe.Pointer(p))
     8  	return (*Dart_CObject)(unsafe.Pointer(x ^ 0))
     9  }