82_Ret_opt_valid_
FSFile*
fsOpen(_In_opt_ strref path, flags_t flags);
121bool fsRead(_Inout_
FSFile* file, _Out_writes_bytes_to_(sz, *bytesread)
void* buf,
size_t sz,
122 _Out_ _Deref_out_range_(0, sz)
size_t* bytesread);
148bool fsWrite(_Inout_
FSFile* file, _In_reads_bytes_(sz)
void* buf,
size_t sz,
149 _Out_opt_ _Deref_out_range_(0, sz)
size_t* byteswritten);
FSFile * fsOpen(strref path, flags_t flags)
bool fsWrite(FSFile *file, void *buf, size_t sz, size_t *byteswritten)
bool fsRead(FSFile *file, void *buf, size_t sz, size_t *bytesread)
enum FSSeekTypeEnum FSSeekType
int64 fsTell(FSFile *file)
bool fsClose(FSFile *file)
bool fsFlush(FSFile *file)
int64 fsSeek(FSFile *file, int64 off, FSSeekType seektype)
@ FS_Set
Seek from beginning of file (absolute position)
@ FS_End
Seek from end of file (usually negative offset)
@ FS_Cur
Seek from current file position (relative)
@ FS_Write
Open for writing.
@ FS_Lock
Request exclusive access (other processes can read but not write)
@ FS_Create
Create file if it doesn't exist.
@ FS_Overwrite
Create or truncate for writing.
@ FS_Read
Open for reading.
@ FS_Truncate
Truncate file to zero length on open.