CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
file.h File Reference

Low-level file I/O operations. More...

#include <cx/cx.h>
#include <cx/fs/fs.h>
#include <cx/fs/fileobj.h>

Go to the source code of this file.

Macros

#define fileClose(pfile)   (unused_noeval(&((*(pfile))->_is_File)), _fileClose((File**)(pfile)))
 

Typedefs

typedef File FSFile
 A file opened on the OS filesystem with fsOpen()
 

Functions

FSFilefsOpen (strref path, flags_t flags)
 
bool fsRead (FSFile *file, void *buf, size_t sz, size_t *bytesread)
 
bool fsWrite (FSFile *file, const void *buf, size_t sz, size_t *byteswritten)
 
bool fsWriteString (FSFile *file, strref str, size_t *byteswritten)
 
int64 fsTell (FSFile *file)
 
int64 fsSeek (FSFile *file, int64 off, FSSeekType seektype)
 
bool fsFlush (FSFile *file)
 

Detailed Description

Low-level file I/O operations.

Definition in file file.h.