GO-C

2019-10-12  本文已影响0人  RedHatMe

1.回调函数的过程
https://blog.csdn.net/dong_beijing/article/details/79721222

  1. GO-C对应类型
char -->  C.char -->  byte
signed char -->  C.schar -->  int8
unsigned char -->  C.uchar -->  uint8
short int -->  C.short -->  int16
short unsigned int -->  C.ushort -->  uint16
int -->  C.int -->  int
unsigned int -->  C.uint -->  uint32
long int -->  C.long -->  int32 or int64
long unsigned int -->  C.ulong -->  uint32 or uint64
long long int -->  C.longlong -->  int64
long long unsigned int -->  C.ulonglong -->  uint64
float -->  C.float -->  float32
double -->  C.double -->  float64
wchar_t -->  C.wchar_t  -->  
void * -> unsafe.Pointer

引用:
https://colobu.com/2016/06/30/dive-into-go-10/

上一篇 下一篇

猜你喜欢

热点阅读