L3DT documentation
Large 3D terrain generator

hfzRead

Description

Read bytes from a HF2/HFZ file.

Function prototype

long hfzRead(hfzFile* fs, void* pData, int len);

Arguments

Name Type Description
fs hfzFile* A handle to an open hfzFile struct (see hfzOpen).
pData void* A handle to the memory block into which data will be read.
len long The number of bytes to be read.

Return value

The number of bytes read (if positive), or else an error code (if negative). Use hfzGetErrorStr to retrieve the error description.

Comments

None.

 
libhfz/functions/hfzread.txt · Last modified: 2017/08/31 04:43 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki