From f62c038ffe4e87adfd98d279feff1ba9f5a69999 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sun, 9 Aug 2020 20:05:31 -0700 Subject: [PATCH] Added BYTE_MASK const (0xFF) --- core/src/com/riiablo/io/BitConstants.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/riiablo/io/BitConstants.java b/core/src/com/riiablo/io/BitConstants.java index 45f936a9..2b5bf484 100644 --- a/core/src/com/riiablo/io/BitConstants.java +++ b/core/src/com/riiablo/io/BitConstants.java @@ -12,6 +12,7 @@ public class BitConstants { static final int MAX_SAFE_CACHED_BITS = Long.SIZE - Byte.SIZE; static final int BYTE_SHIFT = Integer.bitCount(Byte.SIZE - 1); + static final int BYTE_MASK = (1 << Byte.SIZE) - 1; static final long[] UNSIGNED_MASKS = new long[Long.SIZE]; static {