Package org.lwjgl.system
Class CheckIntrinsics
java.lang.Object
org.lwjgl.system.CheckIntrinsics
Simple index checks.
On Java 9 these checks are replaced with the corresponding Objects
methods, which perform better.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
checkFromIndexSize
(int fromIndex, int size, int length) static int
checkFromToIndex
(int fromIndex, int toIndex, int length) static int
checkIndex
(int index, int length)
-
Method Details
-
checkIndex
public static int checkIndex(int index, int length) -
checkFromToIndex
public static int checkFromToIndex(int fromIndex, int toIndex, int length) -
checkFromIndexSize
public static int checkFromIndexSize(int fromIndex, int size, int length)
-