gopherchina2018-cgo-talk icon indicating copy to clipboard operation
gopherchina2018-cgo-talk copied to clipboard

:book: GopherChina2018: 深入CGO编程 - 最新修订

Results 3 gopherchina2018-cgo-talk issues
Sort by recently updated
recently updated
newest added

Note that both conversions must appear in the same expression, with only the intervening arithmetic between them: // INVALID: uintptr cannot be stored in variable // before conversion back to...

// int32 => *C.char var x = int32(9527) var p *C.char = (*C.char)(unsafe.Pointer(&x)) // *C.char => int32 var q int32 = *(*int32)(unsafe.Pointer(p))