Read a BE word from the buffer
| 63 | |
| 64 | // Read a BE word from the buffer |
| 65 | inline uint16 readBEWord( const void *buffer ) { |
| 66 | const uint8* bytes = (const uint8*) buffer; |
| 67 | |
| 68 | return uint16((bytes[0] << 8) + bytes[1]); |
| 69 | } |
| 70 | |
| 71 | // Write a LE word in BE |
| 72 | inline void writeBEWord( const void *buffer, uint16 pValue ) { |
no outgoing calls
no test coverage detected