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

Public Member Functions

override string ToString ()
 

Static Public Member Functions

static implicit operator float (bfloat val)
 
static implicit operator bfloat (float val)
 
static implicit operator bfloat (byte[] val)
 

Public Attributes

float _data
 

Properties

VoidPtr Address [get]
 
float Value [get]
 

Member Function Documentation

◆ operator bfloat() [1/2]

static implicit BrawlLib.Internal.bfloat.operator bfloat ( byte[]  val)
inlinestatic
123 {
124 return new bfloat {_data = BitConverter.ToSingle(val, 0)};
125 }
float _data
Definition: BigEndianTypes.cs:110

◆ operator bfloat() [2/2]

static implicit BrawlLib.Internal.bfloat.operator bfloat ( float  val)
inlinestatic
118 {
119 return new bfloat {_data = val.Reverse()};
120 }

◆ operator float()

static implicit BrawlLib.Internal.bfloat.operator float ( bfloat  val)
inlinestatic
113 {
114 return val._data.Reverse();
115 }

◆ ToString()

override string BrawlLib.Internal.bfloat.ToString ( )
inline
141 {
142 return Value.ToString();
143 }
float Value
Definition: BigEndianTypes.cs:138

Member Data Documentation

◆ _data

float BrawlLib.Internal.bfloat._data

Property Documentation

◆ Address

VoidPtr BrawlLib.Internal.bfloat.Address
get
128 {
129 get
130 {
131 fixed (void* p = &this)
132 {
133 return p;
134 }
135 }
136 }

◆ Value

float BrawlLib.Internal.bfloat.Value
get

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