15 #include <Ultralight/Defines.h> 24 #if defined(__WIN32__) || defined(_WIN32) 39 kFileSeekOrigin_Beginning = 0,
40 kFileSeekOrigin_Current,
48 kMetadataType_Unknown = 0,
50 kMetadataType_Directory,
80 virtual bool FileExists(
const String16& path) = 0;
85 virtual bool DeleteFile_(
const String16& path) = 0;
90 virtual bool DeleteEmptyDirectory(
const String16& path) = 0;
95 virtual bool MoveFile_(
const String16& old_path,
const String16& new_path) = 0;
100 virtual bool GetFileSize(
const String16& path, int64_t& result) = 0;
105 virtual bool GetFileSize(
FileHandle handle, int64_t& result) = 0;
115 virtual bool GetFileModificationTime(
const String16& path, time_t& result) = 0;
120 virtual bool GetFileCreationTime(
const String16& path, time_t& result) = 0;
135 virtual bool CreateDirectory_(
const String16& path) = 0;
140 virtual String16 GetHomeDirectory() = 0;
155 virtual bool GetVolumeFreeSpace(
const String16& path, uint64_t& result) = 0;
160 virtual int32_t GetVolumeId(
const String16& path) = 0;
180 virtual void CloseFile(
FileHandle& handle) = 0;
190 virtual bool TruncateFile(
FileHandle handle, int64_t offset) = 0;
195 virtual int64_t WriteToFile(
FileHandle handle,
const char* data, int64_t length) = 0;
200 virtual int64_t ReadFromFile(
FileHandle handle,
char* data, int64_t length) = 0;
205 virtual bool CopyFile_(
const String16& source_path,
const String16& destination_path) = 0;
FileSeekOrigin
The position to seek from in a file,.
MetadataType
The type of path,.
A non-nullable smart pointer.
This is a set of common JavaScriptCore Helper functions to simplify sample code.
FileSystem interface, used for all file system operations.
A UTF-16 string container.
const FileHandle invalidFileHandle
Handle used to denote an invalid file.
The header for the String16 class.
int FileHandle
File Handle type used as unique ID for opened files.