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. More...
|
| |
| template<class T > |
| constexpr | SourceBytes (const T &data) |
| | From container-like. More...
|
| |
| template<class T , size_t N> |
| constexpr | SourceBytes (T(&data)[N]) |
| | From array. More...
|
| |
| constexpr | SourceBytes (const void *data, size_t size_bytes) |
| | From data + size in bytes. More...
|
| |
|
constexpr size_t | size () const |
| | Retrieves contained size.
|
| |
|
constexpr size_t | size_bytes () const |
| | Retrieves contained size in bytes.
|
| |
|
constexpr const char * | data () const |
| | Retrieves contained data.
|
| |
|
template<class T > |
| constexpr const T * | data_as () const |
| | Retrieves contained data.
|
| |
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 class was generated from the following file: