mpiMapLoadMemory

The C API uses different methods to load, run, and control maps, including mpiMapLoadMemory.

MPIRC mpiMapLoadMemory (HMPIMAP  *hMap,const char  *lpszIdentifierconst char  
		*lpszWorkingDirectory,const char  *pcCompiledMap,int  iSize)

Inputs

lpszIdentifier
Text string used to identify the compiled map. The string cannot exceed 32 characters.
lpszWorkingDirectory
Directory that should be used as the working directory for the map.
pcCompiledMap
Bytes that comprise a compiled map.
iSize
Number of bytes pointed to pcCompiledMap.

Outputs

hMap
Map object

Returns

Success status

HMPIMAP hMap1;
HMPIMAP hMap2;
char     *pMapData = 
MY_COMPILED_MAP_BYTES;
int        iSize = 
sizeof(MY_COMPILED_MAP_BYTES);
mpiMapLoadMemory (&hMap1, "MyMap", pMapData, iSize);
mpiMapLoadMemory (&hMap2, "MyMap", NULL, 0);