public static ByteBuf copyMedium(int... values) {
        if (values == null || values.length == 0) {
            return EMPTY_BUFFER;
        }
        ByteBuf buffer = buffer(values.length * 3);
        for (int v: values) {
            buffer.writeMedium(v);
        }
        return buffer;
    }
public static ByteBuf copyMedium ( int ... values ) { if ( values == null || values . length == 0 ) { return EMPTY_BUFFER ; } ByteBuf buffer = buffer ( values . length * 3 ) ; for ( int v : values ) { buffer . writeMedium ( v ) ; } return buffer ; }
Create a new big-endian buffer that holds a sequence of the specified 24-bit integers.