30 OTF_FILEMODE_NOTHING = 0,
32 OTF_FILEMODE_WRITE= 2,
40 OTF_FILESTATUS_UNKNOWN= 0,
41 OTF_FILESTATUS_ACTIVE= 1,
42 OTF_FILESTATUS_SUSPENDED= 2,
43 OTF_FILESTATUS_CLOSED= 3
93 void OTF_File_setZBufferSize(
OTF_File* file, uint32_t size );
98 OTF_FileMode mode, OTF_FileCompression compression );
OTF_FileStatus OTF_File_status(OTF_File *file)
return OTF_File status
Definition: OTF_File.c:693
Definition: OTF_File.c:78
void OTF_File_finalize(OTF_File *o)
finalize a OTF_File object
Definition: OTF_File.c:140
enum_OTF_FileMode
mode determining what to do with a file
Definition: OTF_File.h:28
size_t OTF_File_read(OTF_File *file, void *ptr, size_t size)
read from an OTF_File
Definition: OTF_File.c:362
void OTF_File_suspend(OTF_File *file)
suspend OTF_File - internal use only.
Definition: OTF_File.c:721
int OTF_File_close(OTF_File *file)
close OTF_File
Definition: OTF_File.c:600
OTF_File * OTF_File_open_zlevel(const char *filename, OTF_FileManager *manager, OTF_FileMode mode, OTF_FileCompression compression)
internal use
Definition: OTF_File.c:1070
size_t OTF_File_read_internal(OTF_File *file, void *dest, size_t length)
read 'length' bytes from underlying file or from special memory buffer
Definition: OTF_File.c:1276
size_t OTF_File_write(OTF_File *file, const void *ptr, size_t size)
OTF_File to an OTF_File.
Definition: OTF_File.c:258
int OTF_File_revive(OTF_File *file, OTF_FileMode mode)
re-open the file when closed or suspended - internal use only.
Definition: OTF_File.c:741
OTF_File * OTF_File_open_with_external_buffer(uint32_t len, const char *buffer, uint8_t is_compressed, OTF_FileMode mode)
open a pseudo OTF_File that actually reads from the given memory buffer.
Definition: OTF_File.c:168
OTF_File * OTF_File_open(const char *filename, OTF_FileManager *manager, OTF_FileMode mode)
open an OTF_File
Definition: OTF_File.c:160
enum_OTF_FileStatus
status of a file
Definition: OTF_File.h:38
int OTF_File_seek(OTF_File *file, uint64_t pos)
seek absolute position in an OTF_File
Definition: OTF_File.c:445
uint64_t OTF_File_tell(OTF_File *file)
get absolut position from an OTF_File
Definition: OTF_File.c:548
uint64_t OTF_File_size(OTF_File *file)
return the file size in bytes
Definition: OTF_File.c:569
file handles management structure
Definition: OTF_FileManager.c:32
Handles file naming issues.
void OTF_File_init(OTF_File *o)
initialize a OTF_File object
Definition: OTF_File.c:120