unilink  0.4.3
A simple C++ library for unified async communication
unilink::memory::safe_buffer_factory Namespace Reference

Factory functions for creating SafeDataBuffer instances. More...

Functions

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

Detailed Description

Factory functions for creating SafeDataBuffer instances.

Function Documentation

◆ from_c_string()

SafeDataBuffer unilink::memory::safe_buffer_factory::from_c_string ( const char *  str)

Definition at line 127 of file safe_data_buffer.cc.

◆ from_raw_data()

SafeDataBuffer unilink::memory::safe_buffer_factory::from_raw_data ( const uint8_t *  data,
size_t  size 
)

Definition at line 136 of file safe_data_buffer.cc.

◆ from_span()

SafeDataBuffer unilink::memory::safe_buffer_factory::from_span ( ConstByteSpan  span)

Definition at line 138 of file safe_data_buffer.cc.

◆ from_string()

SafeDataBuffer unilink::memory::safe_buffer_factory::from_string ( const std::string &  str)

Definition at line 125 of file safe_data_buffer.cc.

◆ from_vector()

SafeDataBuffer unilink::memory::safe_buffer_factory::from_vector ( const std::vector< uint8_t > &  vec)

Definition at line 134 of file safe_data_buffer.cc.