Associates a FileHandle
with an offset in to the file.
This encapsulates the pattern of incrementally writing bytes in to a file, a chunk at a time. Convenience methods are provided for working with pulls.
- Companion
- object
Value members
Concrete methods
Returns a new cursor with the offset adjusted to the specified position.
Returns a new cursor with the offset adjusted to the specified position.
Writes a single chunk to the underlying file handle, returning a new cursor with an offset incremented by the chunk size.
Writes a single chunk to the underlying file handle, returning a new cursor with an offset incremented by the chunk size.
Writes all chunks from the supplied stream to the underlying file handle, returning a cursor with offset incremented by the total number of bytes written.
Writes all chunks from the supplied stream to the underlying file handle, returning a cursor with offset incremented by the total number of bytes written.