MCPcopy Create free account
hub / github.com/DentonW/DevIL / GetShort

Function GetShort

DevIL/src-IL/src/il_dicom.cpp:315–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315ILuint GetShort(DICOMHEAD *Header, ILushort GroupNum)
316{
317 ILushort Num;
318
319 iread(&Num, 1, 2);
320 // The 0x02 group is always little endian.
321 if (GroupNum == 0x02) {
322 UShort(&Num);
323 return Num;
324 }
325 // Now we have to swizzle it if it is not 0x02.
326 if (Header->BigEndian)
327 BigUShort(&Num);
328 else
329 UShort(&Num);
330
331 return Num;
332}
333
334
335ILuint GetInt(DICOMHEAD *Header, ILushort GroupNum)

Callers 4

iGetDicomHeadFunction · 0.85
SkipElementFunction · 0.85
GetNumericValueFunction · 0.85
iLoadDicomInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected