Isle
Loading...
Searching...
No Matches
mxramstreamprovider.h File Reference
#include "mxstreamprovider.h"
Include dependency graph for mxramstreamprovider.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MxRAMStreamProvider
 [AI] Provides RAM-backed stream data access. More...
 

Functions

MxU32 ReadData (MxU8 *p_fileSizeBuffer, MxU32 p_fileSize)
 [AI] Rearranges split and unordered chunks within a memory buffer for SI resource files, and merges related ones to create a contiguous buffer. More...
 

Function Documentation

◆ ReadData()

MxU32 ReadData ( MxU8 p_fileSizeBuffer,
MxU32  p_fileSize 
)

[AI] Rearranges split and unordered chunks within a memory buffer for SI resource files, and merges related ones to create a contiguous buffer.

Also fixes DS_CHUNK_SPLIT flags where necessary.

Parameters
p_fileSizeBuffer[AI] Buffer containing the file data (after being loaded by MxRAMStreamProvider).
p_fileSize[AI] The size in bytes of p_fileSizeBuffer.
Returns
[AI] The size in bytes of the output contiguous (merged) buffer.

[AI] This is a global helper for SI file chunk merging as used by MxRAMStreamProvider on load.

Definition at line 106 of file mxramstreamprovider.cpp.