Table of Contents
hfzLoadExDescriptionLoad a HF2/HFZ file from disk into memory. Unlike hfzLoad, this function automatically allocates the memory block. Function prototypelong hfzLoadEx(const char* lpFileName, hfzHeader& fh, float** h_pData, LIBHFZ_PROG_CALLBACK lpProgCallback, void* lpCallbackParam); Arguments
Return valueLIBHFZ_STATUS_OK if the file was loaded successfully, and otherwise an error code. Use hfzGetErrorStr to retrieve the error description. ExamplehfzHeader fh; // declare a header struct float* pData; // declare a map data handle hfzLoadEx("mymap.hfz", fh, &pData, 0); // load the file CommentsCallers must free data
Once you are finished with the map data addressed by h_pData, you must release the memory using the Using lpProgCallbackPlease consult the comments for hfzSave Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|