|
CX Framework
Cross-platform C utility framework
|
Low-level file I/O operations. More...
#include <cx/cx.h>Go to the source code of this file.
Typedefs | |
| typedef struct FSFile | FSFile |
| typedef enum FSSeekTypeEnum | FSSeekType |
Enumerations | |
| enum | FSOpenFlags { FS_Read = 1 , FS_Write = 2 , FS_Create = 4 , FS_Truncate = 8 , FS_Lock = 16 , FS_Overwrite = (FS_Write | FS_Create | FS_Truncate) } |
| enum | FSSeekTypeEnum { FS_Set = 0x00010000 , FS_Cur = 0x00020000 , FS_End = 0x00030000 } |
Functions | |
| FSFile * | fsOpen (strref path, flags_t flags) |
| bool | fsClose (FSFile *file) |
| bool | fsRead (FSFile *file, void *buf, size_t sz, size_t *bytesread) |
| bool | fsWrite (FSFile *file, void *buf, size_t sz, size_t *byteswritten) |
| int64 | fsTell (FSFile *file) |
| int64 | fsSeek (FSFile *file, int64 off, FSSeekType seektype) |
| bool | fsFlush (FSFile *file) |
Low-level file I/O operations.
Definition in file file.h.