code: @SuppressWarnings("deprecation")
      public static ByteBuf setShortBE(ByteBuf buf, int index, int shortValue) {
          return buf.order() == ByteOrder.BIG_ENDIAN? buf.setShort(index, shortValue) : buf.setShortLE(index, shortValue);
      }
docs: Sets a big-endian 16-bit short integer to the buffer.