public static final boolean stepBuffer(final ByteBuffer buffer, final int remaining) {
        if (buffer.remaining() >= remaining) {
            buffer.position(buffer.position() + remaining);
            return true;
        }
        else {
            return false;
        }
    }
Utilities for byte process

@author dennis
metamorphosis-commons/src/main/java/com/taobao/metamorphosis/network/ByteUtils.java