Go to the documentation of this file.00001 #include "IncrementalReadInterface.h"
00002 #include <stdio.h>
00003
00004 unsigned int IncrementalReadInterface::GetFilePart( const char *filename, unsigned int startReadBytes, unsigned int numBytesToRead, void *preallocatedDestination, FileListNodeContext context)
00005 {
00006 FILE *fp = fopen(filename, "rb");
00007 if (fp==0)
00008 return 0;
00009 fseek(fp,startReadBytes,SEEK_SET);
00010 unsigned int numRead = (unsigned int) fread(preallocatedDestination,1,numBytesToRead, fp);
00011 fclose(fp);
00012 return numRead;
00013 }