A flag enum specifying what the stream is capable of doing.
Used with seek.
Copies data from the current position in this stream to the end of this stream, into the given stream. The given stream is written to using it's current position as well.
A helper function for copyTo, that uses a buffer created from an std.experimental.allocator Allocator. The buffer is of course disposed of afterwards.
A helper function for copyTo, that uses a buffer allocated by the GC.
A helper function for copyTo, that uses a buffer placed on the stack.
Disposes of the stream's resources.
Flushes the stream's data.
Creates a GC-allocated buffer with a specified size, and attempts to read in a certain amount of bytes.
Reads bytes from the stream into a buffer.
Seeks somewhere into the stream.
Shortcut for seek(SeekFrom.Current)
Shortcut for seek(SeekFrom.End)
Shortcut for seek(SeekFrom.Start)
Writes bytes into the stream.
Sets the length of the stream's data.
Gets the length of the stream's data.
Sets the position of the stream's 'cursor'.
Gets the position of the stream's 'cursor'.
Sets the read timeout for the stream.
Gets the read timeout for the stream.
Sets the write timeout for the stream.
Gets the write timeout for the stream.
The base class for all streams.
Streams are a common interface for reading/writing a 'stream' of bytes.
Other classes can be built on top of streams, such as the BinaryIO class to provide more specific functionality to streams.