Creates a virtual file out from an array.
Creates a virtual file out from a pointer and a length indicator.
Return an input range to read the data stream by line.
Closes the datastream.
Copies the data into the buffer and moves the file forward the length of the buffer. Throws exception if EOF reached.
Writes data into the datastream. If the stream is shorter, then it'll be extended.
Reads a single element from the stream. Throws Exception if EOF reached. Important: Does not provide any complex serialization method, so structs must avoid heap managed fields like dynamic arrays. They should implement a custom serializer.
Writes a single element to the stream. Throws Exception if EOF reached. Important: Does not provide any complex serialization method, so structs must avoid heap managed fields like dynamic arrays. They should implement a custom serializer.
Indicates if the virtual file is opened. If the datastream isn't null, it must be open.
Jumps to the given location.
Returns the size of the datastream.
Returns the current position.
Implements the virtual file.