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

jvmMain.kotlinx.io.core.StringsJVM.kt Maven / Gradle / Ivy

There is a newer version: 0.1.16
Show newest version
package kotlinx.io.core

import kotlinx.io.charsets.*

@Suppress("NOTHING_TO_INLINE")
actual inline fun String(bytes: ByteArray, offset: Int, length: Int, charset: Charset): String =
        java.lang.String(bytes, offset, length, charset) as String


internal actual fun String.getCharsInternal(dst: CharArray, dstOffset: Int) {
    @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN")
    (this as java.lang.String).getChars(0, length, dst, dstOffset)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy