//////////////////////////////////////////////////////////////////////////// Load a chunk header @param outFile Pointer to the file data - points to the chunk data afterwards @return Copy of the chunk header ////////////////////////////////////////////////////////////////////////////
| 60 | //! @return Copy of the chunk header |
| 61 | ///////////////////////////////////////////////////////////////////////////////// |
| 62 | inline ChunkHeader LoadChunk(uint8_t*& outFile) |
| 63 | { |
| 64 | ChunkHeader head; |
| 65 | ::memcpy(&head.type, outFile, 4); |
| 66 | outFile += 4; |
| 67 | ::memcpy(&head.length, outFile, 4); |
| 68 | outFile += 4; |
| 69 | AI_LSWAP4(head.length); |
| 70 | AI_LSWAP4(head.type); |
| 71 | return head; |
| 72 | } |
| 73 | |
| 74 | ///////////////////////////////////////////////////////////////////////////////// |
| 75 | //! Load a sub chunk header |
no outgoing calls
no test coverage detected