boost::shared_array<uint8_t> buffer(new uint8_t[serialized_size]);
时间: 2023-10-21 08:21:36 浏览: 189
buffer-to-uint8array:将缓冲区(或字符串)转换为 Uint8Array
这行代码创建了一个 boost::shared_array 对象,其中存储了一个 uint8_t 类型的数组,数组的大小是 serialized_size。这个对象可以用来动态地管理和共享内存,可以在多个地方使用和访问同一个数组。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ROS学习笔记34(在python中使用C++类)](https://blog.csdn.net/qq_27806947/article/details/98305053)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [libed2k源码导读:(三)网络IO](https://blog.csdn.net/lanzheng_1113/article/details/104025376)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文