[Example] #define SECT_SIZE 2048 #define FILE_SIZE 1000*SECT_SIZE #define RD_UNIT 10Uint8 * rd_bp, * proc_bp; / * Read buffer and processing buffer * / Uint32 buf1 [RD_UNIT * SECT_SIZE / 4]; / * Data storage area 1 * / Uint32 buf2 [RD_UNIT * SECT_SIZE / 4]; / * Data storage area 2 * / GfsHn gfs; Sint32 i, stat, nbyte;
gfs = GFS_Open(fid); GFS_NwCdRead (gfs, FILE_SIZE); / * Prefetch instruction to CD buffer * / GFS_SetTransPara (gfs, RD_UNIT); / * Take out the maximum RD_UNIT sector once * / for (i = 0; i