00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ANET_FILES
00014 #define ANET_FILES
00015
00016 #include "Memory.h"
00017 #include "FilesSpecific.h"
00018
00044 ANetFile ANetInitFile();
00045
00068 UInt32 ANetGetSetFilePath(ANetFile *f, ANetMemoryTag path, UInt8 set);
00069
00089 UInt32 ANetGetSetFileAsync(ANetFile *f, UInt8 *async, UInt8 set);
00090
00104 UInt8 ANetIsFileBusy(ANetFile *f);
00105
00106
00125 UInt32 ANetGetFileSize(ANetFile *f, UInt32 *size);
00126
00145 UInt32 ANetOpenFile(ANetFile *f);
00146
00163 UInt32 ANetCloseFile(ANetFile *f);
00164
00200 UInt32 ANetReadFile(ANetFile *f, UInt32 startPos, UInt32 length, ANetMemoryTag buffer, UInt32 *read);
00201
00224 UInt32 ANetWriteFile(ANetFile *f, ANetMemoryTag buffer);
00225
00226 UInt32 ANetWriteFileAt(ANetFile *f, ANetMemoryTag buffer, UInt32 pos);
00227 UInt32 ANetDeleteFile(ANetFile *f);
00228 UInt32 ANetCopyFile(ANetFile *source, ANetFile *dest);
00229
00230 #endif
00231