16 #ifndef vtkSegYIOUtils_h 17 #define vtkSegYIOUtils_h 32 unsigned char readUChar(std::ifstream& in);
33 void swap(
char* a,
char* b);
41 bool checkIfBigEndian()
43 unsigned short a = 0x1234;
44 if (*((
unsigned char*)&a) == 0x12)
51 #endif // vtkSegYIOUtils_h float readFloat(std::ifstream &in)
static vtkSegYIOUtils * Instance()
float readIBMFloat(std::ifstream &in)
char readChar(std::ifstream &in)
int readLongInteger(std::streamoff pos, std::ifstream &in)
short readShortInteger(std::streamoff pos, std::ifstream &in)
unsigned char readUChar(std::ifstream &in)
void swap(char *a, char *b)
std::streamoff getFileSize(std::ifstream &in)