mirror of
https://git.stillkill.net/MinecraftLeak/Mc-cpp-Snapshot.git
synced 2026-10-22 13:22:19 +01:00
Initial commit
This commit is contained in:
commit
a9c1b8fcb6
2100 files changed
+610164
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#include "IncrementalReadInterface.h"
|
||||
#include <stdio.h>
|
||||
|
||||
using namespace RakNet;
|
||||
|
||||
unsigned int IncrementalReadInterface::GetFilePart( const char *filename, unsigned int startReadBytes, unsigned int numBytesToRead, void *preallocatedDestination, FileListNodeContext context)
|
||||
{
|
||||
FILE *fp = fopen(filename, "rb");
|
||||
if (fp==0)
|
||||
return 0;
|
||||
fseek(fp,startReadBytes,SEEK_SET);
|
||||
unsigned int numRead = (unsigned int) fread(preallocatedDestination,1,numBytesToRead, fp);
|
||||
fclose(fp);
|
||||
return numRead;
|
||||
}
|
||||
Reference in new issue
Block a user