Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToChars() [6/9]

static int System.Xml.XmlConverter.ToChars ( float value,
byte[] buffer,
int offset )
inlinestatic

Definition at line 941 of file XmlConverter.cs.

942 {
943 if (float.IsInfinity(value))
944 {
945 return ToInfinity(float.IsNegativeInfinity(value), buffer, offset);
946 }
947 if ((double)value == 0.0)
948 {
950 }
952 }
static int ToAsciiChars(string s, byte[] buffer, int offset)
static int ToInfinity(bool isNegative, byte[] buffer, int offset)
static unsafe bool IsNegativeZero(float value)

References System.buffer, System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlConverter.IsNegativeZero(), System.offset, System.Xml.XmlConverter.ToAsciiChars(), System.Xml.XmlConverter.ToInfinity(), System.ToZero, and System.value.