public static int putShort(byte[] bytes, int offset, short val) {
        if (bytes.length - offset < SIZEOF_SHORT) {
            throw new IllegalArgumentException("Not enough room to put a short at" + " offset " + offset
                                               + " in a " + bytes.length + " byte array");
        }
        return ConverterHolder.BEST_CONVERTER.putShort(bytes, offset, val);
    }
Put a short value out to the specified byte array position.

@param bytes  the byte array
@param offset position in the array
@param val    short to write out
@return incremented offset
@throws IllegalArgumentException if the byte array given doesn't have enough room at the offset
                                 specified.
stroom-bytebuffer/src/main/java/stroom/bytebuffer/hbase/Bytes.java