◆ BInt24() [1/2]
BrawlLib.Internal.BInt24.BInt24 |
( |
int |
value | ) |
|
|
inline |
75 {
76 _dat2 = (byte) (value & 0xFF);
77 _dat1 = (byte) ((value >> 8) & 0xFF);
78 _dat0 = (byte) ((value >> 16) & 0x7F);
79 if (value < 0)
80 {
82 }
83 }
byte _dat0
Definition: Int24.cs:8
byte _dat1
Definition: Int24.cs:8
byte _dat2
Definition: Int24.cs:8
◆ BInt24() [2/2]
BrawlLib.Internal.BInt24.BInt24 |
( |
byte |
v0, |
|
|
byte |
v1, |
|
|
byte |
v2 |
|
) |
| |
|
inline |
◆ operator BInt24() [1/2]
static BrawlLib.Internal.BInt24.operator BInt24 |
( |
int |
val | ) |
|
|
inlineexplicitstatic |
60 {
62 }
BInt24(int value)
Definition: Int24.cs:74
◆ operator BInt24() [2/2]
static BrawlLib.Internal.BInt24.operator BInt24 |
( |
uint |
val | ) |
|
|
inlineexplicitstatic |
70 {
71 return new BInt24((
int) val);
72 }
◆ operator int()
static BrawlLib.Internal.BInt24.operator int |
( |
BInt24 |
val | ) |
|
|
inlineexplicitstatic |
55 {
56 return val.Value;
57 }
◆ operator uint()
static BrawlLib.Internal.BInt24.operator uint |
( |
BInt24 |
val | ) |
|
|
inlineexplicitstatic |
65 {
66 return (uint) val.Value;
67 }
◆ _dat0
byte BrawlLib.Internal.BInt24._dat0 |
◆ _dat1
byte BrawlLib.Internal.BInt24._dat1 |
◆ _dat2
byte BrawlLib.Internal.BInt24._dat2 |
◆ Address
VoidPtr BrawlLib.Internal.BInt24.Address |
|
get |
93 {
94 get
95 {
96 fixed (void* ptr = &this)
97 {
98 return ptr;
99 }
100 }
101 }
◆ this[int index]
byte BrawlLib.Internal.BInt24.this[int index] |
|
getset |
11 {
12 get
13 {
14 switch (index)
15 {
19 default: return 0;
20 }
21 }
22 set
23 {
24 switch (index)
25 {
26 case 0:
28 break;
29 case 1:
31 break;
32 case 2:
34 break;
35 }
36 }
37 }
◆ Value
int BrawlLib.Internal.BInt24.Value |
|
getset |
40 {
42 set
43 {
44 _dat2 = (byte) (value & 0xFF);
45 _dat1 = (byte) ((value >> 8) & 0xFF);
46 _dat0 = (byte) ((value >> 16) & 0x7F);
47 if (value < 0)
48 {
50 }
51 }
52 }
The documentation for this struct was generated from the following file:
- BrawlLib/Internal/Int24.cs