Comments (2)
我自己根据demo中传输struct结构数据的方式,修改传输cv::Mat 或std::vector类型的数据,发现是数据是减少,并且不可以用的。可以增加以下几种数据类型的使用吗? 1)cv::Mat (opencv图像库中图像信息存储的变量类型) 2)std::vector,及std::array, std::map等STL 数据类型的传输; 3)自定义存储数据是变长度的带有构造函数的数据类型吗?
非常感谢!!!
用一个种变通的方式: 需要传std::vector 的话(其他数据结构类似),先使用比如 msgpack之类的比较专业的系列化库把std::vector --> 二进制数据 --> 放到std::string 中, 另一端在使用msgpack反系列化回来。 这样的话你的rpc函数的参数就是std:string 就好了。
from buttonrpc_cpp14.
from buttonrpc_cpp14.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buttonrpc_cpp14.