7#include <Common/assertion.h>
8#include <Common/memory.h>
24 template<
typename T,
bool DO_BYTE_REVERSAL = false>
27 template<
typename T,
bool DO_BYTE_REVERSAL = false>
40template<
typename T,
bool DO_BYTE_REVERSAL>
46template<
typename T,
bool DO_BYTE_REVERSAL>
49 static_assert(std::is_trivially_copyable_v<T>);
50 PH_ASSERT(out_data.data());
52 auto const dataAsBytes = std::as_writable_bytes(out_data);
53 read(dataAsBytes.size(), dataAsBytes.data());
55 if constexpr(DO_BYTE_REVERSAL)
57 for(std::size_t di = 0; di < out_data.size(); ++di)
59 reverse_bytes<sizeof(T)>(
reinterpret_cast<std::byte*
>(&out_data[di]));
General path representation. Does not check whether the target actually exists (e....
Definition Path.h:21
The root for all renderer implementations.
Definition EEngineProject.h:6
std::span< T, EXTENT > TSpan
A contiguous sequence of objects of type T. Effectively the same as std::span.
Definition TSpan.h:12