pic32/libraries/HTTPServer/HTMLSDPage.cpp
/***    uint32_t SDRead(File fileSD, uint8_t * pbRead, uint32_t cbRead)
 *
 *    Parameters:
 *          fileSD: An open SD file to read from, you must set the positon before calling SDRead
 *          pbRead: A pointer to a buffer to receive the data read
 *          cbRead: Max size of pbRead buffer
 *              
 *    Return Values:
 *          How many bytes were actually read.
 *
 *    Description: 
 *    
 *      Helper routine to read a buffer from a file.
 * ------------------------------------------------------------ */
uint32_t SDRead(File fileSD, uint8_t * pbRead, uint32_t cbRead)
Parameters:
fileSD: An open SD file to read from, you must set the positon before calling SDRead
pbRead: A pointer to a buffer to receive the data read
cbRead: Max size of pbRead buffer

Return Values:
How many bytes were actually read.



Helper routine to read a buffer from a file.
uint32_t SDRead ( File fileSD uint8_t * pbRead uint32_t cbRead ) Parameters : fileSD : An open SD file to read from you must set the positon before calling SDRead pbRead : A pointer to a buffer to receive the data read cbRead : Max size of pbRead buffer Return Values : How many bytes were actually read . Helper routine to read a buffer from a file .
uint32_t SDRead(DFILE& dFile, uint8_t * pbRead, uint32_t cbRead)
 {
    uint32_t cbA = min(min(dFile.fssize(), cbRead), DFILE::FS_DEFAULT_BUFF_SIZE);
    dFile.fsread(pbRead, cbA, &cbRead);
    return(cbRead);
 }
uint32_t SDRead ( DFILE & dFile , uint8_t * pbRead , uint32_t cbRead ) { uint32_t cbA = min ( min ( dFile . fssize ( ) , cbRead ) , DFILE :: FS_DEFAULT_BUFF_SIZE ) ; dFile . fsread ( pbRead , cbA , & cbRead ) ; return ( cbRead ) ; }
uint32_t SDRead(File fileSD, uint8_t * pbRead, uint32_t cbRead)
    Parameters:
          fileSD: An open SD file to read from, you must set the positon before calling SDRead
          pbRead: A pointer to a buffer to receive the data read
          cbRead: Max size of pbRead buffer
uint32_t SDRead ( File fileSD uint8_t * pbRead uint32_t cbRead ) Parameters : fileSD : An open SD file to read from you must set the positon before calling SDRead pbRead : A pointer to a buffer to receive the data read cbRead : Max size of pbRead buffer