====== 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 [[libhfz:functions:hfzGetErrorStr]] to retrieve the error description. ===== Comments ===== None.