Package io.github.jbellis.jvector.util
Class BitUtil
java.lang.Object
io.github.jbellis.jvector.util.BitUtil
A variety of high efficiency bit twiddling routines and encoders for primitives.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VarHandleDeprecated.Better use little endian unless it is needed for backwards compatibility.static final VarHandleDeprecated.Better use little endian unless it is needed for backwards compatibility.static final VarHandleDeprecated.Better use little endian unless it is needed for backwards compatibility.static final VarHandleDeprecated.Better use little endian unless it is needed for backwards compatibility.static final VarHandleDeprecated.Better use little endian unless it is needed for backwards compatibility. -
Method Summary
-
Field Details
-
VH_BE_SHORT
Deprecated.Better use little endian unless it is needed for backwards compatibility.AVarHandleto read/write big endianshortfrom a byte array. Shape:short vh.get(byte[] arr, int ofs)andvoid vh.set(byte[] arr, int ofs, short val) -
VH_BE_INT
Deprecated.Better use little endian unless it is needed for backwards compatibility.AVarHandleto read/write big endianintfrom a byte array. Shape:int vh.get(byte[] arr, int ofs)andvoid vh.set(byte[] arr, int ofs, int val) -
VH_BE_LONG
Deprecated.Better use little endian unless it is needed for backwards compatibility.AVarHandleto read/write big endianlongfrom a byte array. Shape:long vh.get(byte[] arr, int ofs)andvoid vh.set(byte[] arr, int ofs, long val) -
VH_BE_FLOAT
Deprecated.Better use little endian unless it is needed for backwards compatibility.AVarHandleto read/write big endianfloatfrom a byte array. Shape:float vh.get(byte[] arr, int ofs)andvoid vh.set(byte[] arr, int ofs, float val) -
VH_BE_DOUBLE
Deprecated.Better use little endian unless it is needed for backwards compatibility.AVarHandleto read/write big endiandoublefrom a byte array. Shape:double vh.get(byte[] arr, int ofs)andvoid vh.set(byte[] arr, int ofs, double val)
-