Performs a full-featured, parameter-block read.
#include <nks/fsio.h> int NXReadEx ( NXIo_t *ioInfo, NXAsyncId_t *ioAsyncId);
(IN) Points to the operation information on which the function executes the read operation.
(OUT) Points to the identity of the asynchronous operation. Not currently supported.
If successful, returns 0, and in the ioProcessed field, returns a non-negative integer indicating the number of bytes actually read. Otherwise, returns one of the following error codes:
NXReadEx attempts to read from a file and to fill one or more record buffers in a vector list.
The NXIo_t structure is used for both reading and writing. NXIo_t contains a general description of all the fields. You can use the macro, ioBytesRead, to read the results in the ioProcessed field.
The reading of data proceeds from the position in the file indicated by ioOffset and proceeds for the length maintained in each I/O record by offset. Each buffer is read completely before the next buffer is attempted. If a call to NXReadEx requests that more bytes be read than there exist in the file, as many bytes as there are will be read.
An NXReadEx operation also updates the last accessed time unless the file had been opened by NXFileOpenEx with the NX_OFLAG_BACKUP flag.