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

Method ReadDoubleByte

Utilities/DICOMParser/DICOMFile.cxx:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170doublebyte DICOMFile::ReadDoubleByte()
171{
172 doublebyte sh = 0;
173 int sz = sizeof(doublebyte);
174 this->Read(reinterpret_cast<char*>(&sh), sz);
175 if (PlatformIsBigEndian)
176 {
177 sh = swap2(sh);
178 }
179 return (sh);
180}
181
182doublebyte DICOMFile::ReadDoubleByteAsLittleEndian()
183{

Callers 4

IsDICOMFileMethod · 0.80
IsValidRepresentationMethod · 0.80
ReadNextRecordMethod · 0.80
ParseExplicitRecordMethod · 0.80

Calls 2

ReadMethod · 0.95
swap2Function · 0.85

Tested by

no test coverage detected