Title Function specifications | Function Get file information | Function Name GFS_GetFileInfo | No 2.8 |
-
format void GFS_GetFileInfo (GfsHngfs, Sint32 * fid, Sint32 * fn, Sint32
* Bsize * fsize, Sint32 * atr)
Input gfs: File handle
Output fid: File identifier
: fn: File number
: fsize: File size (unit: bytes)
: atr: File attribute
Function value None
Function Get file information. If NULL is specified for fid, fn, fsize, atr,
Output of information can be suppressed.
. The size of the file is the value recorded in the directory information.
is calculated as 2048 bytes.
Title Function specifications | Function CD buffer partition Get number of sectors | Function Name GFS_GetNumCdbuf | No 2.9 |
-
format Sint32 GFS_GetNumCdbuf (GfsHngfs)
Input gfs: File handle
Output None
Function value Number of sectors in CD buffer section
Function Acquires the number of sectors existing in the CD buffer section.
-
8.3 Complete return type reading
Title Function specifications | Function Load all files | Function Name GFS_Load | No 3.1 |
-
format Sint32 GFS_Load (Sint32 fid, Sint32 off, void * buf, Sint32 bsize)
Input fid: File identifier
: off: Offset (in sectors)
: bsize: Maximum number of data to be read (unit: bytes)
Output buf: Data reading area
Function value Number of data read (in bytes). Negative error code in case of error.
Function Reads file data by specifying a file identifier. Open, closed
Processing is performed inside this function.
When the file size is less than bsize, the data up to the end of the file is read.
will be included . If GFS_BUFSIZ_INF is specified for bsize, the end of the file from the specified position
Data up to is read.
Remarks buf must be placed on a 4-byte boundary.
: The retrieval mode, transfer mode, reading parameters, and retrieval parameters are the default.
The default value is used.