public static int charsToQuad(final char c1, final char c2, final char c3, final char c4) {
        return (0xff & c1) << 24 | (0xff & c2) << 16 | (0xff & c3) << 8 | (0xff & c4) << 0;
    }
Convenience methods for various binary and I/O operations.
src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java