我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

是否可以通过swig将切片从golang传递到c ++

I have known how to use swig to combine go and c++ together. But now I have a go function func encode(demo [][]byte), in this function I want to pass demo to c++ function. In c++, my function is like this void encode(unsigned char** demo) So how can I do this, or is there any document tell me how to do this?

近期文章

  • 如何在Golang中的相同结构方法中模拟结构方法?
  • Godep将Go项目推到PCF-dev时找不到杜松子酒
  • 如何获得HTTP响应的大小?
  • 将有效的4字节UTF-8序列插入MySQL时出错
  • 在标志中隐藏选项
  • 去ListenAndServeTLS
  • 如何在Koding的风筝库中使用JWT
  • 如何从用Go编写的客户端连接到sockJS?
  • dns错误,google-container-engine上没有此类主机
  • 使用XSD验证Golang XML?
  • golang appengine-文件名太长
  • GAE go仅在localhost上提供路径,在域上不提供服务
  • 将嵌套循环内生成的数据存储在地图或切片中
  • 如何访问用Golang编写的OS X沙箱应用程序的资源文件?
  • 在Go中使用原始套接字实现TCP数据包嗅探器
  • JOSE_JS JWE用javascript加密的数据不会被go解密
  • 具有多个goroutine和每个请求不同代理的Http客户端
  • http测试-在传输层伪造分块响应
  • 如何在go中将[] [2] string转换为map [string]字符串?
  • 在本地网络中配置多个IoT设备

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华