public static int bytesToInt(@NonNull byte[] b, final ByteOrder byteOrder) {
        return b.length == 4 ? ByteBuffer.wrap(b).order(byteOrder).getInt() : ByteBuffer.wrap(b).order(byteOrder).getShort();
    }
Convert signed bytes to a 16-bit unsigned int.
mesh/src/main/java/no/nordicsemi/android/mesh/utils/MeshParserUtils.java