MCPcopy Create free account
hub / github.com/beefytech/Beef / ReadDouble

Method ReadDouble

BeefySysLib/DataStream.cpp:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74double DataStream::ReadDouble()
75{
76 if (mBigEndian)
77 {
78 int64 anInt64;
79 Read(&anInt64, sizeof(int64));
80 anInt64 = FromBigEndian(anInt64);
81 return *((double*) &anInt64);
82 }
83 else
84 {
85 double aDouble;
86 Read(&aDouble, sizeof(double));
87 return aDouble;
88 }
89}
90
91String DataStream::ReadAscii8SizedString()
92{

Callers 2

ReadPSDValueMethod · 0.80
InitMethod · 0.80

Calls 2

ReadFunction · 0.85
FromBigEndianFunction · 0.85

Tested by

no test coverage detected