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

Function GetFloat

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

Source from the content-addressed store, hash-verified

353
354
355ILfloat GetFloat(DICOMHEAD *Header, ILushort GroupNum)
356{
357 ILfloat Num;
358
359 iread(&Num, 1, 4);
360 // The 0x02 group is always little endian.
361 if (GroupNum == 0x02) {
362 Float(&Num);
363 return Num;
364 }
365 // Now we have to swizzle it if it is not 0x02.
366 if (Header->BigEndian)
367 BigFloat(&Num);
368 else
369 Float(&Num);
370
371 return Num;
372}
373
374
375ILboolean GetNumericValue(DICOMHEAD *Header, ILushort GroupNum, ILuint *Number)

Callers 1

iLoadDicomInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected