MCPcopy Create free account
hub / github.com/TASEmulators/fceux / read64le

Function read64le

src/utils/endian.cpp:149–160  ·  view source on GitHub ↗

reads a little endian 64bit value from the specified file

Source from the content-addressed store, hash-verified

147
148///reads a little endian 64bit value from the specified file
149int read64le(uint64 *Bufo, std::istream *is)
150{
151 uint64 buf;
152 if(is->read((char*)&buf,8).gcount() != 8)
153 return 0;
154#ifdef FCEU_LITTLE_ENDIAN
155 *Bufo=buf;
156#else
157 *Bufo = FCEU_de64lsb((uint8*)&buf);
158#endif
159 return 1;
160}
161
162
163int read32le(uint32 *Bufo, std::istream *is)

Callers 5

parseBinaryMethod · 0.85
read64leMethod · 0.85
readdoubleMethod · 0.85
read_double_leFunction · 0.85
readleFunction · 0.85

Calls 2

FCEU_de64lsbFunction · 0.85
_freadMethod · 0.45

Tested by

no test coverage detected