public static int bytesToBEInt(byte[] bytes) {
        return (uint8(bytes[0]) << 24)
                + (uint8(bytes[1]) << 16)
                + (uint8(bytes[2]) << 8)
                + (uint8(bytes[3]));
    }
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