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

Function read16le

src/utils/endian.cpp:135–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135int read16le(uint16 *Bufo, std::istream *is)
136{
137 uint16 buf;
138 if(is->read((char*)&buf,2).gcount() != 2)
139 return 0;
140#ifdef FCEU_LITTLE_ENDIAN
141 *Bufo=buf;
142#else
143 *Bufo = FCEU_de16lsb((uint8*)&buf);
144#endif
145 return 1;
146}
147
148///reads a little endian 64bit value from the specified file
149int read64le(uint64 *Bufo, std::istream *is)

Callers

nothing calls this directly

Calls 2

FCEU_de16lsbFunction · 0.85
_freadMethod · 0.45

Tested by

no test coverage detected