MCPcopy Create free account
hub / github.com/assimp/assimp / LoadForm

Function LoadForm

code/Common/IFF.h:96–107  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////// Load a chunk header @param outFile Pointer to the file data - points to the chunk data afterwards @return Copy of the chunk header ////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

94//! @return Copy of the chunk header
95/////////////////////////////////////////////////////////////////////////////////
96inline 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

Callers 6

LoadNodalBlocksMethod · 0.85
LoadNodesMethod · 0.85
LoadNodeTagMethod · 0.85
LoadNodeDataMethod · 0.85
LoadLWO3SurfaceMethod · 0.85
LoadLWO2FileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected