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

Function LoadChunk

code/Common/IFF.h:62–72  ·  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

60//! @return Copy of the chunk header
61/////////////////////////////////////////////////////////////////////////////////
62inline 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

Callers 10

LoadNodalBlocksMethod · 0.85
LoadNodesMethod · 0.85
LoadNodeTagMethod · 0.85
LoadNodeDataMethod · 0.85
LoadLWO3SurfaceMethod · 0.85
LoadLWO3ClipMethod · 0.85
LoadLWO3EnvelopeMethod · 0.85
LoadLWO2FileMethod · 0.85
LoadLWOBFileMethod · 0.85
ReadHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected