IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
mem_data.hxx File Reference

Go to the source code of this file.

Classes

struct  ice::Data

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.
namespace  ice::data

Concepts

concept  ice::HasDataRepresentation

Functions

template<typename Type>
auto ice::data_view (Type const &var) noexcept
template<typename Type, ice::usize::base_type Size>
constexpr auto ice::data_view (Type const(&var)[Size]) noexcept
auto ice::ptr_add (ice::Data mem, ice::usize offset) noexcept -> ice::Data
constexpr auto ice::data::with_highest_alignment (ice::Data data) noexcept -> ice::Data
template<typename T>
requires (std::is_trivially_copyable_v<T> && !std::is_pointer_v<T>)
auto ice::data::read_raw (ice::Data source, T &out_value) noexcept -> ice::Data
template<typename T, ice::u64 Size>
requires (std::is_trivially_copyable_v<T> && !std::is_pointer_v<T>)
auto ice::data::read_raw_array (ice::Data source, T(&out_array)[Size]) noexcept -> ice::Data
template<typename T>
requires (std::is_trivially_copyable_v<T>)
auto ice::data::read_raw (ice::Data source, T *&out_value_ptr) noexcept -> ice::Data
template<typename T, typename OffsetType = ice::usize::base_type>
requires (std::is_trivially_copyable_v<T> && !std::is_pointer_v<T>)
auto ice::data::read_offset (ice::Data source, T &out_value) noexcept -> ice::Data
template<typename T, typename OffsetType = ice::usize::base_type>
requires (std::is_trivially_copyable_v<T>)
auto ice::data::read_offset (ice::Data source, T *&out_value_ptr) noexcept -> ice::Data