| 133 | } |
| 134 | |
| 135 | int 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 |
| 149 | int read64le(uint64 *Bufo, std::istream *is) |
nothing calls this directly
no test coverage detected