jvmMain.kotlinx.io.internal.jvm.Errors.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.internal.jvm
@PublishedApi
internal fun negativeShiftError(delta: Int): Nothing =
throw IllegalStateException("Wrong buffer position change: negative shift $delta")
@PublishedApi
internal fun limitChangeError(): Nothing = throw IllegalStateException("Limit change is now allowed")
@PublishedApi
internal fun wrongBufferPositionChangeError(delta: Int, size: Int): Nothing =
throw IllegalStateException("Wrong buffer position change: $delta. " +
"Position should be moved forward only by at most size bytes (size = $size)")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy