okio / okio / Buffer / UnsafeCursor / seek

seek

(jvm) fun seek(offset:Long):Int

Reposition the cursor so that the data at offset is readable at data[start]. Returns the number of bytes readable in data (at least 1), or -1 if there are no data to read.