|
| | pipe () noexcept |
| | 默认构造函数
|
| | pipe (bool inheritable) |
| | 创建管道
|
| | ~pipe () |
| | 析构函数
|
|
| pipe (pipe &&other) noexcept |
| | 移动构造函数
|
|
pipe & | operator= (pipe &&other) noexcept |
| | 移动赋值运算符
|
| int | read (void *buffer, size_t size) noexcept |
| | 从管道读取数据
|
| NEFORCE_NODISCARD string | read_available () |
| | 从管道读取所有可用数据(非阻塞)
|
| int | write (const void *data, size_t size) noexcept |
| | 向管道写入数据
|
|
void | close_read () noexcept |
| | 关闭管道的读端
|
|
void | close_write () noexcept |
| | 关闭管道的写端
|
|
void | close () noexcept |
| | 关闭管道的所有端
|
| NEFORCE_NODISCARD bool | is_valid () const noexcept |
| | 检查管道是否有效
|
|
NEFORCE_NODISCARD native_handle_type | native_read_handle () const noexcept |
| | 获取读端句柄
|
|
NEFORCE_NODISCARD native_handle_type | native_write_handle () const noexcept |
| | 获取写端句柄
|
|
NEFORCE_NODISCARD native_handle_type | detach_read_handle () noexcept |
| | 分离读端句柄(调用者负责关闭)
|
|
NEFORCE_NODISCARD native_handle_type | detach_write_handle () noexcept |
| | 分离写端句柄(调用者负责关闭)
|