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