2021年12月13日

Go语言中调用C语言----类型转换篇

摘要: 1.Cgo 数组转切片 go数组转C数组 (*[3]int32)(unsafe.Pointer(backgroundColor)) // 切片转数组 c := [6]C.double{ 1, 2, 3, 4, 5, 6 } cfa := (*[6]float64)(unsafe.Pointer(&c 阅读全文

posted @ 2021-12-13 14:54 星河赵 阅读(1106) 评论(0) 推荐(0) 编辑

导航