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
- Source:
- WriteCursor.scala
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.
- Source:
- WriteCursor.scala
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.
- Source:
- WriteCursor.scala
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.
- Source:
- WriteCursor.scala
Like write
but returns a pull instead of an F[WriteCursor[F]]
.
Like write
but returns a pull instead of an F[WriteCursor[F]]
.
- Source:
- WriteCursor.scala