Return to previous page Return to menu Go to next page

4. File access

4.1 Access model

Figure 4.1 shows the file access model.

Figure 4.1 Access function model

∙ Transferring data from the CD-ROM to the CD buffer is called “reading”, and transferring data from the CD buffer to the host area is called “retrieving”.
∙ Applications can transfer data from CD-ROM without being aware of read processing by using GFS_Fread and GFS_NwFread.
∙ Use GFS_NwCdRead if you want to control the reading process with the application.

4.2 Access pointer

Since the access pointer is updated by reading, it moves in units of sectors.
[Figure 4.2 shows the movement of the access pointer when the following formula is executed to read 5000 bytes into the host area buf. After execution, the access pointer has moved from AP1 to AP2.
GFS_Fread (gfs, 3, buf, 5000);

Figure 4.2 Access pointer movement


Return to previous page Return to menu Go to next page