| 168 | } |
| 169 | |
| 170 | doublebyte 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 | |
| 182 | doublebyte DICOMFile::ReadDoubleByteAsLittleEndian() |
| 183 | { |
no test coverage detected