Target byte stream.
More...
|
|
constexpr | TargetBytes ()=default |
| | Default ctor.
|
|
constexpr | TargetBytes (std::nullptr_t) |
| | Disambiguate between multiple pointer types.
|
|
constexpr | TargetBytes (const TargetBytes &other)=default |
| | Copy constructor.
|
|
constexpr | TargetBytes (TargetBytes &&other)=default |
| | Move constructor.
|
|
constexpr TargetBytes & | operator= (const TargetBytes &other)=default |
| | Copy assignment.
|
|
constexpr TargetBytes & | operator= (TargetBytes &&other)=default |
| | Move assignment.
|
|
template<class T, size_t N> |
| constexpr | TargetBytes (std::span< const T, N >) |
| | 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.
|
|
constexpr size_t | size () const |
| | Retrieves contained size.
|
|
constexpr size_t | size_bytes () const |
| | Retrieves contained size in bytes.
|
|
constexpr char * | data () const |
| | Retrieves contained data.
|
|
template<class T> |
| constexpr T * | data_as () const |
| | Retrieves contained data.
|
Target byte stream.
Target byte stream, tipically used as target where bytes are copied to.
◆ TargetBytes() [1/4]
template<class T, size_t N>
| SDL::TargetBytes::TargetBytes |
( |
std::span< T, N > | span | ) |
|
|
inlineconstexpr |
◆ TargetBytes() [2/4]
template<class T>
| SDL::TargetBytes::TargetBytes |
( |
T & | data | ) |
|
|
inlineconstexpr |
From container-like.
- Parameters
-
◆ TargetBytes() [3/4]
template<class T, size_t N>
| SDL::TargetBytes::TargetBytes |
( |
T(&) | data[N] | ) |
|
|
inlineconstexpr |
◆ TargetBytes() [4/4]
| SDL::TargetBytes::TargetBytes |
( |
void * | data, |
|
|
size_t | size_bytes ) |
|
inlineconstexpr |
From data + size in bytes.
- Parameters
-
The documentation for this class was generated from the following file: