Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
CacheFile Class Reference

Public Types

enum  Mode {
  kRead,
  kReadWriteNew,
  kReadWrite
}
 
enum  FailCode {
  kFailedToOpen,
  kFailedToRead,
  kFailedToWrite
}
 

Public Member Functions

 CacheFile (const CoreString &file_path)
 
bool open ()
 
void close ()
 
bool is_open () const
 
bool read (void *dst, INodeUint64 nbytes)
 
bool write (const void *src, INodeUint64 nbytes)
 
INodeUint64 get_current_pos () const
 
void rewind ()
 
void skip (INodeUint64 pos)
 
void jump_to (INodeUint64 pos)
 
void jump_to_end ()
 
const CoreStringget_file_path () const
 

Public Attributes

FILE * m_file_handle
 
CoreString m_file_path