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.BUInt24 Struct Reference

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

byte _dat0
 
byte _dat1
 
byte _dat2
 

Properties

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

Constructor & Destructor Documentation

◆ BUInt24() [1/2]

BrawlLib.Internal.BUInt24.BUInt24 ( uint  value)
inline
42 {
43 _dat2 = (byte) (value & 0xFF);
44 _dat1 = (byte) ((value >> 8) & 0xFF);
45 _dat0 = (byte) ((value >> 16) & 0xFF);
46 }
byte _dat0
Definition: UInt24.cs:8
byte _dat1
Definition: UInt24.cs:8
byte _dat2
Definition: UInt24.cs:8

◆ BUInt24() [2/2]

BrawlLib.Internal.BUInt24.BUInt24 ( byte  v0,
byte  v1,
byte  v2 
)
inline
49 {
50 _dat2 = v2;
51 _dat1 = v1;
52 _dat0 = v0;
53 }

Member Function Documentation

◆ operator BUInt24() [1/2]

static implicit BrawlLib.Internal.BUInt24.operator BUInt24 ( int  val)
inlinestatic
27 {
28 return new BUInt24((uint) val);
29 }
BUInt24(uint value)
Definition: UInt24.cs:41

◆ operator BUInt24() [2/2]

static implicit BrawlLib.Internal.BUInt24.operator BUInt24 ( uint  val)
inlinestatic
37 {
38 return new BUInt24(val);
39 }

◆ operator int()

static implicit BrawlLib.Internal.BUInt24.operator int ( BUInt24  val)
inlinestatic
22 {
23 return (int) val.Value;
24 }

◆ operator uint()

static implicit BrawlLib.Internal.BUInt24.operator uint ( BUInt24  val)
inlinestatic
32 {
33 return val.Value;
34 }

Member Data Documentation

◆ _dat0

byte BrawlLib.Internal.BUInt24._dat0

◆ _dat1

byte BrawlLib.Internal.BUInt24._dat1

◆ _dat2

byte BrawlLib.Internal.BUInt24._dat2

Property Documentation

◆ Address

VoidPtr BrawlLib.Internal.BUInt24.Address
get
56 {
57 get
58 {
59 fixed (void* ptr = &this)
60 {
61 return ptr;
62 }
63 }
64 }

◆ Value

uint BrawlLib.Internal.BUInt24.Value
getset
11 {
12 get => ((uint) _dat0 << 16) | ((uint) _dat1 << 8) | _dat2;
13 set
14 {
15 _dat2 = (byte) (value & 0xFF);
16 _dat1 = (byte) ((value >> 8) & 0xFF);
17 _dat0 = (byte) ((value >> 16) & 0xFF);
18 }
19 }

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