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

Function LoadSubChunk

code/Common/IFF.h:79–89  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////// 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 ////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

77//! @return Copy of the sub chunk header
78/////////////////////////////////////////////////////////////////////////////////
79inline 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

Callers 7

LoadLWO2ImageMapMethod · 0.85
LoadLWO2TextureHeaderMethod · 0.85
LoadLWO2ShaderBlockMethod · 0.85
LoadLWO2SurfaceMethod · 0.85
LoadLWO2ClipMethod · 0.85
LoadLWO2EnvelopeMethod · 0.85
LoadLWOBSurfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected