okio / okio / Buffer / UnsafeCursor / next

next

(jvm) fun next():Int

Seeks to the next range of bytes, advancing the offset by end - start. Returns the size of the readable range (at least 1), or -1 if we have reached the end of the buffer and there are no more bytes to read.