MemoryFile

Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
openRead
void openRead()
Undocumented in source. Be warned that the author may not have intended to support it.
openWrite
void openWrite(Flag!"append" append)
Undocumented in source. Be warned that the author may not have intended to support it.
read
void[] read(void[] target)
Undocumented in source. Be warned that the author may not have intended to support it.
seek
void seek(long offset, Seek origin)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(void[] data)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

bytes
ulong bytes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
exists
bool exists [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
open
bool open [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From VFSFile

Mode
enum Mode

File mode (used by implementations);

name
string name [@property getter]

Get name of the file.

path
string path [@property getter]

Get full path of the file in the VFS.

bytes
ulong bytes [@property getter]

Get file size in bytes.

exists
bool exists [@property getter]

Does the file exist?

writable
bool writable [@property getter]

Is it possible to write to this file?

open
bool open [@property getter]

Is the file open?

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(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, 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.

Meta