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

◆ ReadDecimal()

virtual decimal System.IO.BinaryReader.ReadDecimal ( )
inlinevirtualinherited

Definition at line 250 of file BinaryReader.cs.

251 {
252 ReadOnlySpan<byte> span = InternalRead(16);
253 try
254 {
255 return decimal.ToDecimal(span);
256 }
257 catch (ArgumentException innerException)
258 {
259 throw new IOException(SR.Arg_DecBitCtor, innerException);
260 }
261 }
ReadOnlySpan< byte > InternalRead(int numBytes)

References System.SR.Arg_DecBitCtor, and System.IO.BinaryReader.InternalRead().

Referenced by System.Resources.ResourceReader._LoadObjectV2().