C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::flow::byte Class Reference

Provides transformations for sequences of bytes. More...

#include <byte.hpp>

Static Public Member Functions

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.
 

Detailed Description

Provides transformations for sequences of bytes.

Member Function Documentation

◆ 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
separatorThe 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
separatorThe 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_sizeThe maximum number of bytes per chunk.

The documentation for this class was generated from the following file: