|
void | store_8 (uint8_t p_dest) |
| store a byte
|
|
void | store_buffer (const uint8_t *p_src, int p_length) |
| store an array of bytes
|
|
bool | file_exists (const String &p_name) |
| return true if a file exists
|
|
Error | _open (const String &p_path, int p_mode_flags) |
| open a file
|
|
void | close () |
| close a file
|
|
virtual uint64_t | _get_modified_time (const String &p_file) |
|
virtual size_t | get_pos () const |
| get position in the file
|
|
virtual size_t | get_len () const |
| get size of the file
|
|
virtual void | seek (size_t p_position) |
| seek to a given position
|
|
virtual void | seek_end (int64_t p_position=0) |
| seek from the end of file
|
|
virtual bool | eof_reached () const |
| reading passed EOF
|
|
virtual uint8_t | get_8 () const |
| get a byte
|
|
virtual int | get_buffer (uint8_t *p_dst, int p_length) const |
| get an array of bytes
|
|
virtual bool | is_open () const |
| true when file is open
|
|
virtual Error | get_error () const |
| get last error
|
|
virtual uint16_t | get_16 () const |
| get 16 bits uint
|
|
virtual uint32_t | get_32 () const |
| get 32 bits uint
|
|
virtual uint64_t | get_64 () const |
| get 64 bits uint
|
|
virtual float | get_float () const |
|
virtual double | get_double () const |
|
virtual real_t | get_real () const |
|
virtual String | get_line () const |
|
virtual Vector< String > | get_csv_line (String delim=",") const |
|
virtual void | set_endian_swap (bool p_swap) |
|
bool | get_endian_swap () const |
|
virtual void | store_16 (uint16_t p_dest) |
| store 16 bits uint
|
|
virtual void | store_32 (uint32_t p_dest) |
| store 32 bits uint
|
|
virtual void | store_64 (uint64_t p_dest) |
| store 64 bits uint
|
|
virtual void | store_float (float p_dest) |
|
virtual void | store_double (double p_dest) |
|
virtual void | store_real (real_t p_real) |
|
virtual void | store_string (const String &p_string) |
|
virtual void | store_line (const String &p_string) |
|
virtual void | store_pascal_string (const String &p_string) |
|
virtual String | get_pascal_string () |
|
virtual Error | reopen (const String &p_path, int p_mode_flags) |
| does not change the AccessType
|
|
|
virtual void | _set_access_type (AccessType p_access) |
|
Error | set_error (Error p_error) const |
|
void | set_cache_size (int p_size) |
|
int | get_cache_size () |
|
String | fix_path (const String &p_path) const |
|
|
enum | { DEFAULT_CACHE_SIZE = 128 * 1024
} |
|
enum | AccessType { ACCESS_RESOURCES,
ACCESS_USERDATA,
ACCESS_FILESYSTEM,
ACCESS_MAX
} |
|
enum | ModeFlags { READ =1,
WRITE =2,
READ_WRITE =3,
WRITE_READ =7
} |
|
typedef FileAccess *(* | CreateFunc) () |
|
static FileAccess * | create (AccessType p_access) |
|
static FileAccess * | create_for_path (const String &p_path) |
| Create a file access (for the current platform) this is the only portable way of accessing files.
|
|
static FileAccess * | open (const String &p_path, int p_mode_flags, Error *r_error=NULL) |
|
static CreateFunc | get_create_func (AccessType p_access) |
| Create a file access (for the current platform) this is the only portable way of accessing files.
|
|
static bool | exists (const String &p_name) |
| return true if a file exists
|
|
static uint64_t | get_modified_time (const String &p_file) |
|
static void | set_backup_save (bool p_enable) |
|
static bool | is_backup_save_enabled () |
|
static String | get_md5 (const String &p_file) |
|
static Vector< uint8_t > | get_file_as_array (const String &p_path) |
|
template<class T > |
static void | make_default (AccessType p_access) |
|
bool | endian_swap |
|
bool | real_is_double |
|
struct FileAccessBuffered::File | file |
|
struct FileAccessBuffered::Cache | cache |
|
The documentation for this class was generated from the following file: