override fun slice()

in lib/src/main/kotlin/org/jetbrains/zip/signer/datasource/ByteBufferDataSource.kt [38:46]


    override fun slice(offset: Long, size: Long): ByteBufferDataSource {
        if (offset == 0L && size.toInt() == this.size) {
            return this
        }
        if (size < 0 || size > this.size) {
            throw IndexOutOfBoundsException("size: $size, source size: $size")
        }
        return ByteBufferDataSource(getByteBuffer(offset, size.toInt()))
    }