MCPcopy Create free account
hub / github.com/Kitware/ParaView / GetCaseBufferInt

Function GetCaseBufferInt

Examples/Plugins/VisItReader/avtFluentFileFormat.C:2990–3010  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2988
2989//----------------------------------------------------------------------------
2990int avtFluentFileFormat::GetCaseBufferInt(int ptr)
2991{
2992 union mix_i
2993 {
2994 int i;
2995 char c[4];
2996 } mi = {1};
2997
2998 for (int j = 0; j < 4; j++)
2999 {
3000 if (!LittleEndianFlag)
3001 {
3002 mi.c[3 - j] = CaseBuffer.at(ptr+j);
3003 }
3004 else
3005 {
3006 mi.c[j] = CaseBuffer.at(ptr+j);
3007 }
3008 }
3009 return mi.i;
3010}
3011
3012//----------------------------------------------------------------------------
3013float avtFluentFileFormat::GetCaseBufferFloat(int ptr)

Callers 7

GetCellsBinaryFunction · 0.85
GetFacesBinaryFunction · 0.85
GetCellTreeBinaryFunction · 0.85
GetFaceTreeBinaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected