Provides transformations for sequences of bytes.
More...
#include <byte.hpp>
|
static auto | to_chunks (size_t chunk_size) noexcept |
| Returns a transformation step that converts a sequence of bytes into a sequence of chunks.
|
|
static auto | split_at (std::byte separator) noexcept |
| Returns a transformation step that converts a sequence of bytes into a sequence of chunks by splitting the input at a given separator.
|
|
static auto | split_as_utf8_at (char separator) noexcept |
| Returns a transformation step that converts a sequence of bytes into a sequence of (UTF-8) strings by splitting the input at a given separator.
|
|
Provides transformations for sequences of bytes.
◆ split_as_utf8_at()
static auto caf::flow::byte::split_as_utf8_at |
( |
char | separator | ) |
|
|
staticnoexcept |
Returns a transformation step that converts a sequence of bytes into a sequence of (UTF-8) strings by splitting the input at a given separator.
- Parameters
-
separator | The separator to split at. |
◆ split_at()
static auto caf::flow::byte::split_at |
( |
std::byte | separator | ) |
|
|
staticnoexcept |
Returns a transformation step that converts a sequence of bytes into a sequence of chunks by splitting the input at a given separator.
- Parameters
-
separator | The separator to split at. |
◆ to_chunks()
static auto caf::flow::byte::to_chunks |
( |
size_t | chunk_size | ) |
|
|
staticnoexcept |
Returns a transformation step that converts a sequence of bytes into a sequence of chunks.
- Parameters
-
chunk_size | The maximum number of bytes per chunk. |
The documentation for this class was generated from the following file:
- libcaf_core/caf/flow/byte.hpp