subarray

abstract fun subarray(start: Int? = null, end: Int? = null): BufferInstance

Returns a new Buffer instance as a view of this buffer's contents in the given range. Updates to this buffer's data are visible to the returned instance.