StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
helpers.hxx File Reference
#include <StormByte/binary_data.hxx>
#include <StormByte/type_traits.hxx>
#include <StormByte/visibility.h>
#include <span>
#include <utility>
#include <vector>
#include <version>
Include dependency graph for helpers.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
 

Functions

void StormByte::append_bytes (BinaryData &dest, std::span< const std::byte > src) noexcept
 Appends a span of bytes onto a BinaryData.
 
void StormByte::append_bytes (BinaryData &dest, const BinaryData &src) noexcept
 Appends a BinaryData by copy.
 
void StormByte::append_bytes (BinaryData &dest, BinaryData &&src) noexcept
 Appends a BinaryData by move on Base's heap.
 
template<typename T , typename U >
requires Type::ConvertibleTo<T, U>
void StormByte::append_vector (std::vector< T > &dest, std::span< U > src) noexcept
 Appends a span of convertible elements onto a vector.
 
template<typename T >
void StormByte::append_vector (std::vector< T > &dest, const std::vector< T > &src) noexcept
 Appends a vector by copy.
 
template<typename T >
void StormByte::append_vector (std::vector< T > &dest, std::vector< T > &&src) noexcept
 Appends a vector by move.