Go to the documentation of this file.
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
unsigned char readUChar(std::ifstream &in)
static vtkSegYIOUtils * Instance()
void swap(char *a, char *b)
short readShortInteger(std::streamoff pos, std::ifstream &in)
float readIBMFloat(std::ifstream &in)
float readFloat(std::ifstream &in)
int readLongInteger(std::streamoff pos, std::ifstream &in)
char readChar(std::ifstream &in)
std::streamoff getFileSize(std::ifstream &in)