SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members

Source byte stream. More...

Public Member Functions

constexpr SourceBytes ()=default
 Default ctor.
 
constexpr SourceBytes (std::nullptr_t)
 Disambiguate between multiple pointer types.
 
template<class T , size_t N>
constexpr SourceBytes (std::span< T, N > span)
 From span.
 
template<class T >
constexpr SourceBytes (const T &data)
 From container-like.
 
template<class T , size_t N>
constexpr SourceBytes (T(&data)[N])
 From array.
 
constexpr SourceBytes (const void *data, size_t size_bytes)
 From data + size in bytes.
 

Public Attributes

const void * data
 The data copied from.
 
size_t size_bytes
 The size in bytes.
 

Detailed Description

Source byte stream, tipically used as source where bytes are copied from.

Constructor & Destructor Documentation

◆ SourceBytes() [1/4]

template<class T , size_t N>
constexpr SDL::SourceBytes::SourceBytes ( std::span< T, N >  span)
inlineconstexpr
Parameters
spanthe data.

◆ SourceBytes() [2/4]

template<class T >
constexpr SDL::SourceBytes::SourceBytes ( const T &  data)
inlineconstexpr
Parameters
datathe data.

◆ SourceBytes() [3/4]

template<class T , size_t N>
constexpr SDL::SourceBytes::SourceBytes ( T(&)  data[N])
inlineconstexpr
Parameters
datathe data.

◆ SourceBytes() [4/4]

constexpr SDL::SourceBytes::SourceBytes ( const void *  data,
size_t  size_bytes 
)
inlineconstexpr
Parameters
datathe data.
size_bytessize in bytes!

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