CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::BasicRawBuffer< T > Class Template Reference

Basic raw buffer that is composed of a pointer and a size. More...

Collaboration diagram for catapult::utils::BasicRawBuffer< T >:

Public Member Functions

constexpr BasicRawBuffer ()
 Creates an empty buffer. More...
 
template<typename TContainer , typename X = std::enable_if_t<!traits::is_base_of_ignore_reference_v<BasicRawBuffer, TContainer>>, typename Y = std::enable_if_t<!std::is_scalar_v<TContainer>>>
 BasicRawBuffer (TContainer &&container)
 Creates a buffer around the entire contents of container. More...
 
constexpr BasicRawBuffer (T *pRawBuffer, size_t size)
 Creates buffer around pRawBuffer pointer and size. More...
 

Public Attributes

T * pData
 Data pointer. More...
 
size_t Size
 Data size. More...
 

Detailed Description

template<typename T>
class catapult::utils::BasicRawBuffer< T >

Basic raw buffer that is composed of a pointer and a size.

Constructor & Destructor Documentation

◆ BasicRawBuffer() [1/3]

template<typename T>
constexpr catapult::utils::BasicRawBuffer< T >::BasicRawBuffer ( )
inlineconstexpr

Creates an empty buffer.

◆ BasicRawBuffer() [2/3]

template<typename T>
template<typename TContainer , typename X = std::enable_if_t<!traits::is_base_of_ignore_reference_v<BasicRawBuffer, TContainer>>, typename Y = std::enable_if_t<!std::is_scalar_v<TContainer>>>
catapult::utils::BasicRawBuffer< T >::BasicRawBuffer ( TContainer &&  container)
inline

Creates a buffer around the entire contents of container.

◆ BasicRawBuffer() [3/3]

template<typename T>
constexpr catapult::utils::BasicRawBuffer< T >::BasicRawBuffer ( T *  pRawBuffer,
size_t  size 
)
inlineconstexpr

Creates buffer around pRawBuffer pointer and size.

Member Data Documentation

◆ pData

template<typename T>
T* catapult::utils::BasicRawBuffer< T >::pData

Data pointer.

◆ Size

template<typename T>
size_t catapult::utils::BasicRawBuffer< T >::Size

Data size.


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