MCPcopy Create free account
hub / github.com/Kitware/VTK / ReadDoubleByteAsLittleEndian

Method ReadDoubleByteAsLittleEndian

Utilities/DICOMParser/DICOMFile.cxx:182–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182doublebyte DICOMFile::ReadDoubleByteAsLittleEndian()
183{
184 doublebyte sh = 0;
185 int sz = sizeof(doublebyte);
186 this->Read(reinterpret_cast<char*>(&sh), sz);
187 if (PlatformIsBigEndian)
188 {
189 sh = swap2(sh);
190 }
191 return (sh);
192}
193
194quadbyte DICOMFile::ReadQuadByte()
195{

Callers 1

ReadNextRecordMethod · 0.80

Calls 2

ReadMethod · 0.95
swap2Function · 0.85

Tested by

no test coverage detected