Isle
Loading...
Searching...
No Matches
mxramstreamprovider.cpp File Reference
#include "mxramstreamprovider.h"
#include "decomp.h"
#include "mxdsbuffer.h"
#include "mxdsfile.h"
#include "mxomni.h"
#include "mxstreamcontroller.h"
Include dependency graph for mxramstreamprovider.cpp:

Go to the source code of this file.

Macros

#define IntoType(p)   ((MxU32*) (p))
 

Functions

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

Macro Definition Documentation

◆ IntoType

#define IntoType (   p)    ((MxU32*) (p))

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.