FileStream

Undocumented in source.

Constructors

this
this(string filename, string mode)

Constructs a FileStream with a given filename and mode.

Members

Functions

data
ubyte[] data()
Undocumented in source. Be warned that the author may not have intended to support it.
read
ubyte read()
Undocumented in source. Be warned that the author may not have intended to support it.
read
ubyte[] read(size_t n)
Undocumented in source. Be warned that the author may not have intended to support it.
seek
ulong seek(long pos, Seek origin)
Undocumented in source. Be warned that the author may not have intended to support it.
skip
ulong skip(ulong n)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(ubyte b)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(ubyte[] b)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
eof
bool eof [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
ulong length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
readable
bool readable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
seekable
bool seekable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tell
ulong tell [@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.

Inherited Members

From IStream

length
ulong length [@property getter]

A property that returns the length of the stream

tell
ulong tell [@property getter]

Current position

empty
bool empty [@property getter]

Check if empty

seekable
bool seekable [@property getter]

Seekable

seek
ulong seek(long pos, Seek origin)

Sets the current position in the stream

skip
ulong skip(ulong n)

Skip n positions in the stream

writable
bool writable [@property getter]

Writable

write
void write(ubyte b)

Writes an unsigned byte to the stream

write
void write(ubyte[] b)

Writes an array of unsigned bytes to the stream

readable
bool readable [@property getter]

Readable

read
ubyte read()

Reads an unsigned byte from the stream

read
ubyte[] read(size_t n)

Reads an array of ubytes from the stream

data
ubyte[] data()

Reads the entire stream

Meta