- Mode
enum Mode
File mode (used by implementations);
- name
string name [@property getter]
- path
string path [@property getter]
Get full path of the file in the VFS.
- bytes
ulong bytes [@property getter]
- exists
bool exists [@property getter]
- writable
bool writable [@property getter]
Is it possible to write to this file?
- open
bool open [@property getter]
- input
VFSFileInput input [@property getter]
Open the file and get reading access.
- output
Flag!"append" output [@property setter]
Open the file and get writing access. Must not already be open.
- openRead
void openRead()
Open the file for reading.
- openWrite
void openWrite(Flag!"append" append)
Open the file for writing/appending.
- read
void[] read(void[] target)
Read up to target.length bytes to target from current file position.
- write
void write(in void[] data)
Write data.length bytes to file from current file position.
- seek
void seek(long offset, Seek origin)
Seek offset bytes from origin within the file.
- close
void close()
Close the file, finalizing any file operations.
- openReadProxy
void openReadProxy(VFSFile file)
- openWriteProxy
void openWriteProxy(VFSFile file, Flag!"append" append)
- readProxy
void[] readProxy(VFSFile file, void[] target)
- writeProxy
void writeProxy(VFSFile file, const void[] data)
- seekProxy
void seekProxy(VFSFile file, long offset, Seek origin)
- closeProxy
void closeProxy(VFSFile file)
Proxies to for derived VFSFiles to call protected members of other VFSFiles.
VFSFile implementation representing a file in the file system.