![]() |
RMVL
2.5.0-dev
Robotic Manipulation and Vision Library
|
最新字节流共享内存对象 更多...
#include <rmvl/io/ipc.hpp>
Public 成员函数 | |
| LatestBytesSHM (std::string_view name, std::size_t capacity) | |
| 构造或连接到一个最新字节流共享内存对象 | |
| bool | write (std::string_view data) noexcept |
| 写入最新字节流 | |
| bool | read (std::string &data, uint64_t &last_sequence) noexcept |
| 读取自 last_sequence 之后的最新字节流 | |
| bool | empty () const noexcept |
| 判断是否为空(从未写入过) | |
| std::size_t | capacity () const noexcept |
| 获取最大字节容量 | |
| Public 成员函数 继承自 rm::SHMBase | |
| SHMBase (std::string_view name, std::size_t size) | |
| 创建或打开共享内存对象并映射到当前进程地址空间 | |
| ~SHMBase () | |
| SHMBase (const SHMBase &)=delete | |
| SHMBase (SHMBase &&other) noexcept | |
| SHMBase & | operator= (const SHMBase &)=delete |
| SHMBase & | operator= (SHMBase &&other) noexcept |
| void * | data () noexcept |
| 获取共享内存映射指针 | |
| const void * | data () const noexcept |
| 获取共享内存映射指针 | |
| bool | isCreator () const noexcept |
| 是否为创建者 | |
最新字节流共享内存对象
| rm::LatestBytesSHM::LatestBytesSHM | ( | std::string_view | name, |
| std::size_t | capacity ) |
|
inlinenoexcept |
获取最大字节容量
|
noexcept |
判断是否为空(从未写入过)
|
noexcept |
|
noexcept |