Return to previous page Return to menu Go to next page

8.2.6 Buffer information

  Title  
Function specifications
  Function  
CD buffer size Get
  Function Name  [S-] 
CDC_GetBufSiz
  No 
6.1

 format  Sint32 CDC_GetBufSiz (Sint32 * totalsiz, Sint32 * bufnum, Sint32 * freesiz)
 Input  None
 Output  totalsiz: Total buffer size (in sectors, 200 sectors = C8H)
  bufnum: Total number of buffer sections (24 sections = 18H)
:  freesiz: Free buffer size (in sectors)
 Function value  Returns an error code.
 Function  The size of the entire CD buffer, the number of buffer partitions (both are fixed values), and the current free size
 You get .
The number of  selectors  selectors (or the number of apertures) is equal to the total number of buffer sections.
 Remarks  Even if the free size is 0, there are sectors used in the system, so the buffer is full.
 Not necessarily . 

  Title  
Function specification
  Function  
CD buffer partition Get number of sectors
  Function Name  [S-] 
CDC_GetSctNum
  No
6.2

 format  Sint32 CDC_GetSctNum (Sint32 bufno, Sint32 * snum)
 Input  bufno: Buffer partition number
 Output  snum: Number of sectors in the buffer section (buffer section size)
 Function value  Returns an error code.
 Function  Gets the current sector count (buffer partition size) of the buffer partition. 


Return to previous page Return to menu Go to next page