public static boolean maskedEquals(byte a, byte b, byte mask) {
        return (a & mask) == (b & mask);
    }
A utility class for handling unsigned integers and unsigned arithmetics, as well as syntactic
sugar methods for ByteBuffer. Useful for networking and packet manipulations.
{@hide}
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/BitUtils.java