Package com.viaversion.viaversion.util
Class CompactArrayUtil
java.lang.Object
com.viaversion.viaversion.util.CompactArrayUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic long[]
createCompactArray
(int bitsPerEntry, int entries, IntToLongFunction valueGetter) static long[]
createCompactArrayWithPadding
(int bitsPerEntry, int entries, IntToLongFunction valueGetter) static void
iterateCompactArray
(int bitsPerEntry, int entries, long[] data, BiIntConsumer consumer) static void
iterateCompactArrayWithPadding
(int bitsPerEntry, int entries, long[] data, BiIntConsumer consumer)
-
Method Details
-
createCompactArrayWithPadding
public static long[] createCompactArrayWithPadding(int bitsPerEntry, int entries, IntToLongFunction valueGetter) -
iterateCompactArrayWithPadding
public static void iterateCompactArrayWithPadding(int bitsPerEntry, int entries, long[] data, BiIntConsumer consumer) -
createCompactArray
public static long[] createCompactArray(int bitsPerEntry, int entries, IntToLongFunction valueGetter) -
iterateCompactArray
public static void iterateCompactArray(int bitsPerEntry, int entries, long[] data, BiIntConsumer consumer)
-