Read a LE DWord in BE
| 78 | |
| 79 | // Read a LE DWord in BE |
| 80 | inline uint32 readBEDWord( const void *buffer ) { |
| 81 | const uint8* bytes = (const uint8*) buffer; |
| 82 | |
| 83 | return uint32((bytes[0] << 24) + (bytes[1] << 16) + (bytes[2] << 8) + (bytes[3])); |
| 84 | } |
| 85 | |
| 86 | // Read little endian from the buffer |
| 87 | template <class tRet> inline tRet readLE(const void *pBuffer) { |
no outgoing calls
no test coverage detected