MCPcopy Create free account
hub / github.com/LAStools/LAStools / from_big_endian

Function from_big_endian

LASlib/src/lasreader_shp.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42extern "C" FILE* fopen_compressed(const char* filename, const char* mode, bool* piped);
43
44static void from_big_endian(int* value)
45{
46 if (Endian::IS_LITTLE_ENDIAN)
47 {
48 char help;
49 char* field = (char*)value;
50 help = field[0];
51 field[0] = field[3];
52 field[3] = help;
53 help = field[1];
54 field[1] = field[2];
55 field[2] = help;
56 }
57}
58
59static void from_little_endian(int* value)
60{

Callers 1

openMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected