public static ByteBuf copyShort ( int value ) { ByteBuf buf = buffer ( 2 ) ; buf . writeShort ( value ) ; return buf ; }
Creates a new 2 - byte big - endian buffer that holds the specified 16 - bit integer .