unilink  0.4.3
A simple C++ library for unified async communication
safe_data_buffer.hpp File Reference
#include <cstdint>
#include <functional>
#include <memory>
#include <stdexcept>
#include <string>
#include <string_view>
#include <type_traits>
#include <vector>
#include "unilink/base/visibility.hpp"
#include "unilink/memory/safe_span.hpp"

Go to the source code of this file.

Classes

class  unilink::memory::SafeDataBuffer
 Safe data buffer for type-safe data transfer. More...
 

Namespaces

 
 
 

Typedefs

using unilink::memory::SafeDataHandler = std::function< void(const SafeDataBuffer &)>
 Safe data handler type for callbacks. More...
 

Functions

SafeDataBuffer unilink::memory::safe_buffer_factory::from_string (const std::string &str)
 
SafeDataBuffer unilink::memory::safe_buffer_factory::from_c_string (const char *str)
 
SafeDataBuffer unilink::memory::safe_buffer_factory::from_vector (const std::vector< uint8_t > &vec)
 
SafeDataBuffer unilink::memory::safe_buffer_factory::from_raw_data (const uint8_t *data, size_t size)
 
SafeDataBuffer unilink::memory::safe_buffer_factory::from_span (ConstByteSpan span)