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

Function GetInt

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

Source from the content-addressed store, hash-verified

333
334
335ILuint GetInt(DICOMHEAD *Header, ILushort GroupNum)
336{
337 ILuint Num;
338
339 iread(&Num, 1, 4);
340 // The 0x02 group is always little endian.
341 if (GroupNum == 0x02) {
342 UInt(&Num);
343 return Num;
344 }
345 // Now we have to swizzle it if it is not 0x02.
346 if (Header->BigEndian)
347 BigUInt(&Num);
348 else
349 UInt(&Num);
350
351 return Num;
352}
353
354
355ILfloat GetFloat(DICOMHEAD *Header, ILushort GroupNum)

Callers 3

iGetDicomHeadFunction · 0.85
SkipElementFunction · 0.85
GetNumericValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected