com.github.luben.zstd.Objects Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zstd-jni Show documentation
Show all versions of zstd-jni Show documentation
JNI bindings for Zstd native library that provides fast and high compression lossless algorithm for Java and all JVM languages.
package com.github.luben.zstd;
final class Objects {
/**
* Checks constraints, that the fromIndex, size, length is not negative, and fromIndex + size is not greater than the size.
*/
static void checkFromIndexSize(int fromIndex, int size, int length) {
if ((length | fromIndex | size) < 0 || size > length - fromIndex) {
throw new IndexOutOfBoundsException(String.format("Range [%s, %
© 2015 - 2025 Weber Informatics LLC | Privacy Policy