reads a little endian 64bit value from the specified file
| 147 | |
| 148 | ///reads a little endian 64bit value from the specified file |
| 149 | int 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 | |
| 163 | int read32le(uint32 *Bufo, std::istream *is) |
no test coverage detected