Source byte stream.
More...
|
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.
|
|
|
const void * | data |
| The data copied from.
|
|
size_t | size_bytes |
| The size in bytes.
|
|
Source byte stream, tipically used as source where bytes are copied from.
◆ SourceBytes() [1/4]
template<class T , size_t N>
constexpr SDL::SourceBytes::SourceBytes |
( |
std::span< T, N > |
span | ) |
|
|
inlineconstexpr |
◆ SourceBytes() [2/4]
template<class T >
constexpr SDL::SourceBytes::SourceBytes |
( |
const T & |
data | ) |
|
|
inlineconstexpr |
◆ SourceBytes() [3/4]
template<class T , size_t N>
constexpr SDL::SourceBytes::SourceBytes |
( |
T(&) |
data[N] | ) |
|
|
inlineconstexpr |
◆ SourceBytes() [4/4]
constexpr SDL::SourceBytes::SourceBytes |
( |
const void * |
data, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineconstexpr |
- Parameters
-
data | the data. |
size_bytes | size in bytes! |
The documentation for this struct was generated from the following file: