binary-streams / loggersoft.kotlin.streams / setLimit

setLimit

@ExperimentalUnsignedTypes fun Stream.setLimit(position: Long, limit: Long): Unit

Sets current stream position and limit. e.g. after setLimit(10, 5) the stream position will be 10 and limit 15.

Parameters

position - new stream position.

limit - limit to read/write begin from position in bytes.