format Sint32 GFS_Fread (GfsHngfs, Sint32 nsct, void * buf, Sint32 bsize)
Input gfs: File handle
nsct: Number of sectors to read
: bsize: Maximum number of data to be read (unit: bytes)
Output buf: Reading area
Function value Number of bytes actually read
Function Specify the opened file handle and read the file data
Do this .
Reads nsct sector data from the access pointer. Of the read data,
: Up to bsize bytes of data are written to buf. The access pointer is nsct
Go to the sector ahead sector.
Remarks The buf address boundary is limited depending on the transfer mode.
: -GFS_TMODE_SCU: No limit
. -Other than that: Place on 4-byte boundary
Even if the access pointer is outside the range of the file specified by the file handle,
Reads as part of the file. I'll also straddle the end of the file
When the number of read sectors is specified, the specified number of sectors is read.
Do .
: The read parameter is the default value regardless of the value specified in GFS_SetReadPara.
is used.