slice

abstract fun slice(start: Int, size: Int): ReadBuffer

Creates a new ReadBuffer point to a region of the current buffer, starting at start with size size.

Return

ReadBuffer slice.

Parameters

start

starting position of the ReadBuffer

size

in bytes of the ReadBuffer