in lib/src/main/kotlin/org/jetbrains/zip/signer/datasource/SeekableByteChannelDataSource.kt [87:93]
override fun getByteBuffer(offset: Long, size: Int): ByteBuffer {
if (size < 0) throw IndexOutOfBoundsException("size: $size")
val result = ByteBuffer.allocate(size)
copyTo(offset, size, result)
result.flip()
return result
}