CursorPositionCodec

The backend half of a cursor token: native position values to bytes and back. decode throws on any payload it did not produce for a sort of size fields; the core reports every such failure as the invalid cursor error.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun decode(payload: ByteArray, size: Int): CursorPosition
Link copied to clipboard
abstract fun encode(position: CursorPosition): ByteArray