Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
CrossPlatformFileIO.h File Reference

Go to the source code of this file.

Macros

#define CP_FILE_OPEN_ERROR   10000
#define CP_FILE_CLOSE_ERROR   10001
#define CP_FILE_EOF_ERROR   10002
#define CP_FILE_READ_ERROR   10003
#define CP_FILE_WRITE_ERROR   10004
#define CP_FILE_POS_ERROR   10005
#define CP_FILE_REF   FILE*
#define IGORLONG   long

Functions

int CPCreateFile (const char *fullFilePath, int overwrite)
int CPDeleteFile (const char *fullFilePath)
int CPOpenFile (const char *fullFilePath, int readOrWrite, CP_FILE_REF *fileRefPtr)
int CPCloseFile (CP_FILE_REF fileRef)
int CPReadFile (CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr)
int CPReadFile2 (CP_FILE_REF fileRef, unsigned long count, void *buffer, unsigned long *numBytesReadPtr)
int CPWriteFile (CP_FILE_REF fileRef, unsigned long count, const void *buffer, unsigned long *numBytesWrittenPtr)
int CPGetFilePosition (CP_FILE_REF fileRef, unsigned long *filePosPtr)
int CPSetFilePosition (CP_FILE_REF fileRef, long filePos, int mode)
int CPAtEndOfFile (CP_FILE_REF fileRef)
int CPNumberOfBytesInFile (CP_FILE_REF fileRef, unsigned long *numBytesPtr)

Macro Definition Documentation

◆ CP_FILE_CLOSE_ERROR

#define CP_FILE_CLOSE_ERROR   10001

Definition at line 2 of file CrossPlatformFileIO.h.

◆ CP_FILE_EOF_ERROR

#define CP_FILE_EOF_ERROR   10002

Definition at line 3 of file CrossPlatformFileIO.h.

◆ CP_FILE_OPEN_ERROR

#define CP_FILE_OPEN_ERROR   10000

Definition at line 1 of file CrossPlatformFileIO.h.

◆ CP_FILE_POS_ERROR

#define CP_FILE_POS_ERROR   10005

Definition at line 6 of file CrossPlatformFileIO.h.

◆ CP_FILE_READ_ERROR

#define CP_FILE_READ_ERROR   10003

Definition at line 4 of file CrossPlatformFileIO.h.

◆ CP_FILE_REF

◆ CP_FILE_WRITE_ERROR

#define CP_FILE_WRITE_ERROR   10004

Definition at line 5 of file CrossPlatformFileIO.h.

◆ IGORLONG

#define IGORLONG   long

Definition at line 13 of file CrossPlatformFileIO.h.

Function Documentation

◆ CPAtEndOfFile()

int CPAtEndOfFile ( CP_FILE_REF fileRef)

References CP_FILE_REF.

◆ CPCloseFile()

int CPCloseFile ( CP_FILE_REF fileRef)

References CP_FILE_REF.

◆ CPCreateFile()

int CPCreateFile ( const char * fullFilePath,
int overwrite )

◆ CPDeleteFile()

int CPDeleteFile ( const char * fullFilePath)

◆ CPGetFilePosition()

int CPGetFilePosition ( CP_FILE_REF fileRef,
unsigned long * filePosPtr )

References CP_FILE_REF.

◆ CPNumberOfBytesInFile()

int CPNumberOfBytesInFile ( CP_FILE_REF fileRef,
unsigned long * numBytesPtr )

References CP_FILE_REF.

◆ CPOpenFile()

int CPOpenFile ( const char * fullFilePath,
int readOrWrite,
CP_FILE_REF * fileRefPtr )

References CP_FILE_REF.

◆ CPReadFile()

int CPReadFile ( CP_FILE_REF fileRef,
unsigned long count,
void * buffer,
unsigned long * numBytesReadPtr )

References count, and CP_FILE_REF.

◆ CPReadFile2()

int CPReadFile2 ( CP_FILE_REF fileRef,
unsigned long count,
void * buffer,
unsigned long * numBytesReadPtr )

References count, and CP_FILE_REF.

◆ CPSetFilePosition()

int CPSetFilePosition ( CP_FILE_REF fileRef,
long filePos,
int mode )

References CP_FILE_REF.

◆ CPWriteFile()

int CPWriteFile ( CP_FILE_REF fileRef,
unsigned long count,
const void * buffer,
unsigned long * numBytesWrittenPtr )

References count, and CP_FILE_REF.