Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
CrossPlatformFileIO.h
Go to the documentation of this file.
1#define CP_FILE_OPEN_ERROR 10000
2#define CP_FILE_CLOSE_ERROR 10001
3#define CP_FILE_EOF_ERROR 10002
4#define CP_FILE_READ_ERROR 10003
5#define CP_FILE_WRITE_ERROR 10004
6#define CP_FILE_POS_ERROR 10005
7
8#define CP_FILE_REF FILE*
9
10#if ( __WORDSIZE == 64 ) || defined (__APPLE__)
11 #define IGORLONG int
12#else
13 #define IGORLONG long
14#endif
15
16int CPCreateFile(const char* fullFilePath, int overwrite);
17int CPDeleteFile(const char* fullFilePath);
18int CPOpenFile(const char* fullFilePath, int readOrWrite, CP_FILE_REF* fileRefPtr);
20int CPReadFile(CP_FILE_REF fileRef, unsigned long count, void* buffer, unsigned long* numBytesReadPtr);
21int CPReadFile2(CP_FILE_REF fileRef, unsigned long count, void* buffer, unsigned long* numBytesReadPtr);
22int CPWriteFile(CP_FILE_REF fileRef, unsigned long count, const void* buffer, unsigned long* numBytesWrittenPtr);
23int CPGetFilePosition(CP_FILE_REF fileRef, unsigned long* filePosPtr);
24int CPSetFilePosition(CP_FILE_REF fileRef, long filePos, int mode);
26int CPNumberOfBytesInFile(CP_FILE_REF fileRef, unsigned long* numBytesPtr);
int CPCloseFile(CP_FILE_REF fileRef)
int CPCreateFile(const char *fullFilePath, int overwrite)
int CPDeleteFile(const char *fullFilePath)
int CPWriteFile(CP_FILE_REF fileRef, unsigned long count, const void *buffer, unsigned long *numBytesWrittenPtr)
int CPSetFilePosition(CP_FILE_REF fileRef, long filePos, int mode)
int CPGetFilePosition(CP_FILE_REF fileRef, unsigned long *filePosPtr)
int CPNumberOfBytesInFile(CP_FILE_REF fileRef, unsigned long *numBytesPtr)
int CPReadFile2(CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr)
int CPOpenFile(const char *fullFilePath, int readOrWrite, CP_FILE_REF *fileRefPtr)
int CPReadFile(CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr)
#define CP_FILE_REF
int CPAtEndOfFile(CP_FILE_REF fileRef)
WORD TpSTime long count
Definition Son.h:305