GO-C

作者: RedHatMe | 来源:发表于2019-10-12 14:51 被阅读0次

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/

相关文章

  • GO-C

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

网友评论

      本文标题:GO-C

      本文链接:https://www.haomeiwen.com/subject/vpjauctx.html