|
C++ Actor Framework 0.19
|
An implicitly shared type for passing along WebSocket data frames, i.e., text or binary frames. More...
#include <frame.hpp>
Public Member Functions | |
| frame (frame &&)=default | |
| frame (const frame &)=default | |
| frame & | operator= (frame &&)=default |
| frame & | operator= (const frame &)=default |
| frame (const_byte_span bytes) | |
| frame (std::string_view text) | |
| operator bool () const noexcept | |
| size_t | size () const noexcept |
| bool | empty () const noexcept |
| void | swap (frame &other) |
| bool | is_binary () const noexcept |
| bool | is_text () const noexcept |
| const_byte_span | as_binary () const noexcept |
| std::string_view | as_text () const noexcept |
Static Public Member Functions | |
| template<class... Buffers> | |
| static frame | from_buffers (const Buffers &... buffers) |
| template<class... Buffers> | |
| static frame | from_strings (const Buffers &... buffers) |
An implicitly shared type for passing along WebSocket data frames, i.e., text or binary frames.