fromOffset

open fun fromOffset(offset: Int): OffsetCursor(source)

Creates an OffsetCursor from an offset value. Encodes the offset into the cursor string format.

Return

an OffsetCursor containing the encoded cursor string

Parameters

offset

the zero-based offset position

Throws

if offset is negative