All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.jetbrains.letsPlot.util.pngj.ArrayUtils.kt Maven / Gradle / Ivy

There is a newer version: 4.9.2
Show newest version
/*
 * Copyright (c) 2022. JetBrains s.r.o.
 * Use of this source code is governed by the MIT license that can be found in the LICENSE file.
 */

package org.jetbrains.letsPlot.util.pngj

internal fun arraycopy(
    src: ByteArray,
    srcPos: Int,
    dest: ByteArray,
    destPos: Int,
    length: Int
) {
    src.copyInto(dest, destPos, srcPos, srcPos + length)
}

internal fun arraycopy(
    src: DoubleArray,
    srcPos: Int,
    dest: DoubleArray,
    destPos: Int,
    length: Int
) {
    src.copyInto(dest, destPos, srcPos, srcPos + length)
}

internal fun fill(
    src: ByteArray,
    value: Byte
) {
    src.fill(value)
}

internal fun fill(
    src: IntArray,
    value: Int
) {
    src.fill(value)
}

internal fun fill(
    src: DoubleArray,
    value: Double
) {
    src.fill(value)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy