Target byte stream.
More...
|
constexpr | TargetBytes ()=default |
| Default ctor.
|
|
constexpr | TargetBytes (std::nullptr_t) |
| Disambiguate between multiple pointer types.
|
|
template<class T , size_t N> |
constexpr | TargetBytes (std::span< const T, N > span) |
| Just to have better error message.
|
|
template<class T , size_t N> |
constexpr | TargetBytes (std::span< T, N > span) |
| From span.
|
|
template<class T > |
constexpr | TargetBytes (T &data) |
| From container-like.
|
|
template<class T , size_t N> |
constexpr | TargetBytes (T(&data)[N]) |
| From array.
|
|
constexpr | TargetBytes (void *data, size_t size_bytes) |
| From data + size in bytes.
|
|
|
void * | data |
| The address to have data copied to it.
|
|
size_t | size_bytes |
| The size in bytes.
|
|
Target byte stream, tipically used as target where bytes are copied to.
◆ TargetBytes() [1/4]
template<class T , size_t N>
constexpr SDL::TargetBytes::TargetBytes |
( |
std::span< T, N > |
span | ) |
|
|
inlineconstexpr |
◆ TargetBytes() [2/4]
template<class T >
constexpr SDL::TargetBytes::TargetBytes |
( |
T & |
data | ) |
|
|
inlineconstexpr |
◆ TargetBytes() [3/4]
template<class T , size_t N>
constexpr SDL::TargetBytes::TargetBytes |
( |
T(&) |
data[N] | ) |
|
|
inlineconstexpr |
◆ TargetBytes() [4/4]
constexpr SDL::TargetBytes::TargetBytes |
( |
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: