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