Read bytes from a HF2/HFZ file.
long hfzRead(hfzFile* fs, void* pData, int len);
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. |
The number of bytes read (if positive), or else an error code (if negative). Use hfzGetErrorStr to retrieve the error description.
None.