//////////////////////////////////////////////////////////////////////////// Load a sub chunk header @param outFile Pointer to the file data - points to the chunk data afterwards @return Copy of the sub chunk header ////////////////////////////////////////////////////////////////////////////
| 77 | //! @return Copy of the sub chunk header |
| 78 | ///////////////////////////////////////////////////////////////////////////////// |
| 79 | inline SubChunkHeader LoadSubChunk(uint8_t*& outFile) |
| 80 | { |
| 81 | SubChunkHeader head; |
| 82 | ::memcpy(&head.type, outFile, 4); |
| 83 | outFile += 4; |
| 84 | ::memcpy(&head.length, outFile, 2); |
| 85 | outFile += 2; |
| 86 | AI_LSWAP2(head.length); |
| 87 | AI_LSWAP4(head.type); |
| 88 | return head; |
| 89 | } |
| 90 | |
| 91 | ///////////////////////////////////////////////////////////////////////////////// |
| 92 | //! Load a chunk header |
no outgoing calls
no test coverage detected