FileStream

Accesses the contents of a file as a stream.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

close
void close()

Closes the file handle.

finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
const(ubyte)[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] dst, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
read
void read(ubyte[] dst)
Undocumented in source. Be warned that the author may not have intended to support it.
seek
void seek(ulong offset)
Undocumented in source. Be warned that the author may not have intended to support it.
takeOwnershipOfFD
void takeOwnershipOfFD()
Undocumented in source. Be warned that the author may not have intended to support it.
tell
ulong tell()
Undocumented in source. Be warned that the author may not have intended to support it.
truncate
void truncate(ulong size)
Undocumented in source. Be warned that the author may not have intended to support it.
write
size_t write(ubyte[] bytes, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(char[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(InputStream stream, ulong nbytes)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

dataAvailableForRead
bool dataAvailableForRead [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
fd
int fd [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen [@property getter]

Determines if the file stream is still open

leastSize
ulong leastSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
NativePath path [@property getter]

The path of the file.

readable
bool readable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
ulong size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
writable
bool writable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta