IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ref.hxx
Go to the documentation of this file.
1
3
4#pragma once
5#include <ice/types.hxx>
6
7namespace ice
8{
9
16
18 struct ref16
19 {
22
23 constexpr operator ice::ref32() const noexcept { return { offset, size }; }
24 };
25
27 struct ref8
28 {
31
32 constexpr operator ice::ref16() const noexcept { return { offset, size }; }
33 constexpr operator ice::ref32() const noexcept { return { offset, size }; }
34 };
35
36} // namespace ice
SPDX-License-Identifier: MIT.
Definition array.hxx:12
std::uint16_t u16
Definition types.hxx:25
std::uint32_t u32
Definition types.hxx:26
std::uint8_t u8
Definition types.hxx:24
Holds 'offset' and 'size' fields (u16) to access data stored in a buffer-like object.
Definition ref.hxx:19
ice::u16 offset
Definition ref.hxx:20
ice::u16 size
Definition ref.hxx:21
Holds 'offset' and 'size' fields (u32) to access data stored in a buffer-like object.
Definition ref.hxx:12
ice::u32 offset
Definition ref.hxx:13
ice::u32 size
Definition ref.hxx:14
Holds 'offset' and 'size' fields (u8) to access data stored in a buffer-like object.
Definition ref.hxx:28
ice::u8 size
Definition ref.hxx:30
ice::u8 offset
Definition ref.hxx:29