Changes:
Changed implementation of hfzLoad and hfzLoadEx functions such that the file header argument is nulled with a call to hfzHeader_Init rather than hfzHeader_Reset. Callers are now responsible for ensuring that headers have been reset if they have been initialised prior to any calls to hfzLoad or hfzLoadEx ( Thanks Enge!)
Changes:
Bug-fix for hfzRead to return number of bytes written when in binary mode. Previously, hfzRead was returning 1 when in binary mode and the number of bytes written when in gzip mode ( thanks Joe!)
Changes:
Critical bugfix for hfzWriteTile function, which was incorrectly calculating the maximum altitude for tiles.
Changes:
Revised hfzOpen, hfzRead, hfzWrite and hfzClose to be overridable by setting the hfzFopenProc, hfzFreadProc, hfzFwriteProc and hfzFcloseProc function handles.
Added hfzMalloc, hfzMemcpy and hfzFree, which are overridable by setting the hfzMallocProc, hfzMemcpyProc and hfzFreeProc function handles.
Changes:
Removed old ' hfzSave' function, and renamed hfzSaveEx to hfzSave.
-
-
-
-
-
-
-
Changes:
Fixed hfzWrite for non-compressed streams (prevented write of HF2)
Fixed hfzWriteTile for tiles that are 'short' in x-axis.
Changed HfzFile struct. Now not using union.
|