BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
BrawlLib.Internal.UInt24 Struct Reference

Public Member Functions

 UInt24 (uint value)
 
 UInt24 (byte v0, byte v1, byte v2)
 

Static Public Member Functions

static implicit operator int (UInt24 val)
 
static implicit operator UInt24 (int val)
 
static implicit operator uint (UInt24 val)
 
static implicit operator UInt24 (uint val)
 

Public Attributes

byte _dat2
 
byte _dat1
 
byte _dat0
 

Properties

uint Value [get, set]
 
VoidPtr Address [get]
 

Constructor & Destructor Documentation

◆ UInt24() [1/2]

BrawlLib.Internal.UInt24.UInt24 ( uint  value)
inline
104 {
105 _dat2 = (byte) (value & 0xFF);
106 _dat1 = (byte) ((value >> 8) & 0xFF);
107 _dat0 = (byte) ((value >> 16) & 0xFF);
108 }
byte _dat0
Definition: UInt24.cs:70
byte _dat2
Definition: UInt24.cs:70
byte _dat1
Definition: UInt24.cs:70

◆ UInt24() [2/2]

BrawlLib.Internal.UInt24.UInt24 ( byte  v0,
byte  v1,
byte  v2 
)
inline
111 {
112 _dat2 = v2;
113 _dat1 = v1;
114 _dat0 = v0;
115 }

Member Function Documentation

◆ operator int()

static implicit BrawlLib.Internal.UInt24.operator int ( UInt24  val)
inlinestatic
84 {
85 return (int) val.Value;
86 }

◆ operator uint()

static implicit BrawlLib.Internal.UInt24.operator uint ( UInt24  val)
inlinestatic
94 {
95 return val.Value;
96 }

◆ operator UInt24() [1/2]

static implicit BrawlLib.Internal.UInt24.operator UInt24 ( int  val)
inlinestatic
89 {
90 return new UInt24((uint) val);
91 }
UInt24(uint value)
Definition: UInt24.cs:103

◆ operator UInt24() [2/2]

static implicit BrawlLib.Internal.UInt24.operator UInt24 ( uint  val)
inlinestatic
99 {
100 return new UInt24(val);
101 }

Member Data Documentation

◆ _dat0

byte BrawlLib.Internal.UInt24._dat0

◆ _dat1

byte BrawlLib.Internal.UInt24._dat1

◆ _dat2

byte BrawlLib.Internal.UInt24._dat2

Property Documentation

◆ Address

VoidPtr BrawlLib.Internal.UInt24.Address
get
118 {
119 get
120 {
121 fixed (void* ptr = &this)
122 {
123 return ptr;
124 }
125 }
126 }

◆ Value

uint BrawlLib.Internal.UInt24.Value
getset
73 {
74 get => ((uint) _dat0 << 16) | ((uint) _dat1 << 8) | _dat2;
75 set
76 {
77 _dat2 = (byte) (value & 0xFF);
78 _dat1 = (byte) ((value >> 8) & 0xFF);
79 _dat0 = (byte) ((value >> 16) & 0xFF);
80 }
81 }

The documentation for this struct was generated from the following file: