Shinobi Library - File System Function

gdFsReqRd32

Requests to read the error code file

FORMAT

Sint32 gdFsReqRd32( gdfs, nsct, *buf )
GDFS gdfs
Sint32 nsct
void *buf

PARAMETER

 gdfs  File handle 
 nsct  Number of sectors to be read 
 *buf  Pointer of storage buffer 

RETURN

 Positive value  Number of sectors actually requested 
 Negative value  Error code 

DESCRIPTION

Requests to read the error code file. Control returns from this function once the read request is made. A separate check must be made to determine if the read has actually been completed or not.

EXAMPLE

GDFS gf;
Uint32 buf[32*2048/4];
gf = gdFsOpen("TEST.BIN", NULL);
gdFsReqRd32(gf, 32, buf);
while (gdFsGetStat(gf) == GDD_STAT_READ);
gdFsClose(gf);

NOTE

A 32-byte boundary is necessary for *buf. Furthermore, only one request can be accepted at any one time.

gdFsReqRd32
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999