MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / readInt32

Function readInt32

src/Util/Utils.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 unsigned int readInt32(FILE *file, bool littleEndian) {
134 int data = fgetc(file);
135 data = data << 8 | fgetc(file);
136 data = data << 8 | fgetc(file);
137 data = data << 8 | fgetc(file);
138
139 return littleEndian ? endian_swap(static_cast<unsigned int>(data)) : data;
140 }
141
142 // Move these to a native resource handler class
143 std::vector<CarModel> LoadOBJ(std::string obj_path) {

Callers 1

ExtractVIVFunction · 0.85

Calls 1

endian_swapFunction · 0.85

Tested by

no test coverage detected