//////////////////////////////////////////////////////////////////////////// Load a chunk header @param outFile Pointer to the file data - points to the chunk data afterwards @return Copy of the chunk header ////////////////////////////////////////////////////////////////////////////
| 94 | //! @return Copy of the chunk header |
| 95 | ///////////////////////////////////////////////////////////////////////////////// |
| 96 | inline ChunkHeader LoadForm(uint8_t*& outFile) |
| 97 | { |
| 98 | ChunkHeader head; |
| 99 | outFile += 4; |
| 100 | ::memcpy(&head.length, outFile, 4); |
| 101 | outFile += 4; |
| 102 | ::memcpy(&head.type, outFile, 4); |
| 103 | |
| 104 | AI_LSWAP4(head.length); |
| 105 | AI_LSWAP4(head.type); |
| 106 | return head; |
| 107 | } |
| 108 | |
| 109 | ///////////////////////////////////////////////////////////////////////////////// |
| 110 | //! Read the file header and return the type of the file and its size |
no outgoing calls
no test coverage detected