godot/core/io/file_access.cpp

/**************************************************************************/
/*  file_access.cpp                                                       */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "file_access.h"

#include "core/config/project_settings.h"
#include "core/crypto/crypto_core.h"
#include "core/io/file_access_compressed.h"
#include "core/io/file_access_encrypted.h"
#include "core/io/file_access_pack.h"
#include "core/io/marshalls.h"
#include "core/os/os.h"

FileAccess::CreateFunc FileAccess::create_func[ACCESS_MAX] =;

FileAccess::FileCloseFailNotify FileAccess::close_fail_notify =;

bool FileAccess::backup_save =;
thread_local Error FileAccess::last_file_open_error =;

Ref<FileAccess> FileAccess::create(AccessType p_access) {}

bool FileAccess::exists(const String &p_name) {}

void FileAccess::_set_access_type(AccessType p_access) {}

Ref<FileAccess> FileAccess::create_for_path(const String &p_path) {}

Error FileAccess::reopen(const String &p_path, int p_mode_flags) {}

Ref<FileAccess> FileAccess::open(const String &p_path, int p_mode_flags, Error *r_error) {}

Ref<FileAccess> FileAccess::_open(const String &p_path, ModeFlags p_mode_flags) {}

Ref<FileAccess> FileAccess::open_encrypted(const String &p_path, ModeFlags p_mode_flags, const Vector<uint8_t> &p_key) {}

Ref<FileAccess> FileAccess::open_encrypted_pass(const String &p_path, ModeFlags p_mode_flags, const String &p_pass) {}

Ref<FileAccess> FileAccess::open_compressed(const String &p_path, ModeFlags p_mode_flags, CompressionMode p_compress_mode) {}

Error FileAccess::get_open_error() {}

FileAccess::CreateFunc FileAccess::get_create_func(AccessType p_access) {}

FileAccess::AccessType FileAccess::get_access_type() const {}

String FileAccess::fix_path(const String &p_path) const {}

/* these are all implemented for ease of porting, then can later be optimized */
uint8_t FileAccess::get_8() const {}

uint16_t FileAccess::get_16() const {}

uint32_t FileAccess::get_32() const {}

uint64_t FileAccess::get_64() const {}

float FileAccess::get_float() const {}

real_t FileAccess::get_real() const {}

Variant FileAccess::get_var(bool p_allow_objects) const {}

double FileAccess::get_double() const {}

String FileAccess::get_token() const {}

class CharBuffer {};

String FileAccess::get_line() const {}

Vector<String> FileAccess::get_csv_line(const String &p_delim) const {}

String FileAccess::get_as_text(bool p_skip_cr) const {}

Vector<uint8_t> FileAccess::get_buffer(int64_t p_length) const {}

String FileAccess::get_as_utf8_string(bool p_skip_cr) const {}

void FileAccess::store_8(uint8_t p_dest) {}

void FileAccess::store_16(uint16_t p_dest) {}

void FileAccess::store_32(uint32_t p_dest) {}

void FileAccess::store_64(uint64_t p_dest) {}

void FileAccess::store_real(real_t p_real) {}

void FileAccess::store_float(float p_dest) {}

void FileAccess::store_double(double p_dest) {}

uint64_t FileAccess::get_modified_time(const String &p_file) {}

BitField<FileAccess::UnixPermissionFlags> FileAccess::get_unix_permissions(const String &p_file) {}

Error FileAccess::set_unix_permissions(const String &p_file, BitField<FileAccess::UnixPermissionFlags> p_permissions) {}

bool FileAccess::get_hidden_attribute(const String &p_file) {}

Error FileAccess::set_hidden_attribute(const String &p_file, bool p_hidden) {}

bool FileAccess::get_read_only_attribute(const String &p_file) {}

Error FileAccess::set_read_only_attribute(const String &p_file, bool p_ro) {}

void FileAccess::store_string(const String &p_string) {}

void FileAccess::store_pascal_string(const String &p_string) {}

String FileAccess::get_pascal_string() {}

void FileAccess::store_line(const String &p_line) {}

void FileAccess::store_csv_line(const Vector<String> &p_values, const String &p_delim) {}

void FileAccess::store_buffer(const Vector<uint8_t> &p_buffer) {}

void FileAccess::store_var(const Variant &p_var, bool p_full_objects) {}

Vector<uint8_t> FileAccess::get_file_as_bytes(const String &p_path, Error *r_error) {}

String FileAccess::get_file_as_string(const String &p_path, Error *r_error) {}

String FileAccess::get_md5(const String &p_file) {}

String FileAccess::get_multiple_md5(const Vector<String> &p_file) {}

String FileAccess::get_sha256(const String &p_file) {}

void FileAccess::_bind_methods() {}