public static void copy(final ByteBuffer sourceBuffer,
                            final ByteBuffer destBuffer,
                            final int sourceIndex,
                            final int destIndex,
                            final int length) {
        for (int i = 0; i < length; i++) {
            destBuffer.put(destIndex + i, sourceBuffer.get(sourceIndex + i));
        }
    }
Compare two {@link ByteBuffer} objects as if they are int

@param left  A {@link ByteBuffer} representing a int
@param right A {@link ByteBuffer} representing a int
@return The result of the comparison, 0 if identical, <0 if left < right,
>0 if left < right
stroom-bytebuffer/src/main/java/stroom/bytebuffer/ByteBufferUtils.java