FileStream

File-backed stream

public
class FileStream : FDStream {}

Constructors

this
this(File file)

Constructs a new file stream on the provided file

Inherited Members

From FDStream

fd
int fd;

Underlying file descriptor

read
ulong read(byte[] toArray)

Reads bytes from the file descriptor into the provided array and returns without any further waiting, at most the number of bytes read will be the length of the provided array, at minimum a single byte

readFully
ulong readFully(byte[] toArray)

Reads bytes from the file descriptor into the provided array until the array is fully-filled

write
ulong write(byte[] fromArray)
Undocumented in source. Be warned that the author may not have intended to support it.
writeFully
ulong writeFully(byte[] fromArray)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()

Closes the file descriptor

Meta