jvmMain.kotlinx.io.core.StringsJVM.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-io-jvm Show documentation
Show all versions of kotlinx-io-jvm Show documentation
IO support libraries for Kotlin
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