• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setPCode函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中setPCode函数的典型用法代码示例。如果您正苦于以下问题:C++ setPCode函数的具体用法?C++ setPCode怎么用?C++ setPCode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setPCode函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: response_lrpop

    response_lrpop (LeftOrRight lr)
    {
      if (lr == IS_LEFT) {
	    setPCode (TAIR_RESP_LPOP_PACKET);
      } else {
	    setPCode (TAIR_RESP_RPOP_PACKET);
      }

      config_version = 0;
      values.clear ();
    }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:11,代码来源:lrpop_packet.hpp


示例2: request_lrpop

    request_lrpop (LeftOrRight lr)
    {
      if (lr == IS_LEFT)
	    setPCode (TAIR_REQ_LPOP_PACKET);
      else
	    setPCode (TAIR_REQ_RPOP_PACKET);

      server_flag = 0;
      area = 0;
      version = 0;
      expire = 0;
      count = 1;
    }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:13,代码来源:lrpop_packet.hpp


示例3: request_sadd_multi

 request_sadd_multi() {
     setPCode(TAIR_REQ_SADDMULTI_PACKET);
     area = 0;
     expire = 0;
     keys_values_map.clear();
     sfree = 1;
 }
开发者ID:zbcwilliam,项目名称:tair-rdb-modified,代码行数:7,代码来源:sadd_packet.hpp


示例4: response_hmset

 response_hmset ()
 {
   config_version = 0;
   setPCode (TAIR_RESP_HMSET_PACKET);
   code = 0;
   retvalue = 0;
 }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:7,代码来源:hmset_packet.hpp


示例5: response_hget

 response_hget ()
 {
   config_version = 0;
   setPCode (TAIR_RESP_HGET_PACKET);
   code = 0;
   version = 0;
 }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:7,代码来源:hget_packet.hpp


示例6: flow_control_set

 flow_control_set() : type(tair::stat::IN),
                      lower_mb(-1),
                      upper_mb(-1),
                      ns(-1),
                      success(false) {
     setPCode(TAIR_FLOW_CONTROL_SET);
 }
开发者ID:alibaba,项目名称:tair,代码行数:7,代码来源:flow_control_packet.hpp


示例7: request_hvals

 request_hvals (request_hvals & packet)
 {
   setPCode (packet.getPCode ());
   server_flag = packet.server_flag;
   area = packet.area;
   key.clone (packet.key);
 }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:7,代码来源:hvals_packet.hpp


示例8: request_prefix_incdec

    request_prefix_incdec(const request_prefix_incdec &rhs) {
        setPCode(TAIR_REQ_PREFIX_INCDEC_PACKET);
        server_flag = rhs.server_flag;
        area = rhs.area;
        key_count = rhs.key_count;
        packet_id = rhs.packet_id;
        if (rhs.pkey != NULL) {
            pkey = new data_entry(*rhs.pkey);
        } else {
            pkey = NULL;
        }

        if (rhs.key_counter_map != NULL) {
            key_counter_map = new key_counter_map_t;
            key_counter_map_t::const_iterator it = rhs.key_counter_map->begin();
            while (it != rhs.key_counter_map->end()) {
                data_entry *key = new data_entry(*it->first);
                counter_wrapper *wrapper = new counter_wrapper(*it->second);
                key_counter_map->insert(make_pair(key, wrapper));
                ++it;
            }
        } else {
            key_counter_map = NULL;
        }
    }
开发者ID:alibaba,项目名称:tair,代码行数:25,代码来源:prefix_incdec_packet.hpp


示例9: clone

    void clone(request_mput &packet, bool need_alloc)
    {
      if (this == &packet) {
        return ;
      }
      clear();
      setPCode(TAIR_REQ_MPUT_PACKET);
      server_flag = packet.server_flag;
      area = packet.area;
      count = packet.count;
      len = packet.len;
      compressed = packet.compressed;
      packet_data_len = packet.packet_data_len;

      if (need_alloc) {
        if (compressed) {
          packet_data = new char[packet_data_len];
          memcpy(packet_data, packet.packet_data, packet_data_len);
        }

        alloc = true;
        record_vec = new mput_record_vec();
        mput_record_vec::iterator it;
        for (it = packet.record_vec->begin(); it != packet.record_vec->end(); ++it) {
          mput_record* rec = new mput_record(**it);
          record_vec->push_back(rec);
        }
      } else {
        alloc = packet.alloc;
        record_vec = packet.record_vec;
        packet_data = packet.packet_data;
      }

      packet_id = packet.packet_id;
    }
开发者ID:yinchunxiang,项目名称:tair_trunk_r1797_annotation,代码行数:35,代码来源:put_packet.hpp


示例10: request_get_items

 request_get_items(request_get_items& packet) : request_get(packet)
 {
    setPCode(TAIR_REQ_GETITEMS_PACKET);
    count = packet.count;
    offset = packet.offset;
    type = packet.type;
 }
开发者ID:xiangyong,项目名称:platform,代码行数:7,代码来源:items_packet.hpp


示例11: request_exists

 request_exists(const uint16_t iarea, const data_entry &ikey)
 {
   setPCode(TAIR_REQ_EXISTS_PACKET);
   server_flag = 0;
   area = iarea;
   key = ikey;
 }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:7,代码来源:exists_packet.hpp


示例12: response_lrange

    response_lrange ()
    {
      setPCode (TAIR_RESP_LRANGE_PACKET);

      config_version = 0;
      values.clear ();
    }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:7,代码来源:lrange_packet.hpp


示例13: request_lrange

 request_lrange (int pcode)
 {
   setPCode (pcode);
   server_flag = 0;
   area = 0;
   start = 0;
   end = 0;
 }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:8,代码来源:lrange_packet.hpp


示例14: request_put

 request_put()
 {
    setPCode(TAIR_REQ_PUT_PACKET);
    server_flag = 0;
    area = 0;
    version = 0;
    expired = 0;
 }
开发者ID:yinchunxiang,项目名称:tair_trunk_r1797_annotation,代码行数:8,代码来源:put_packet.hpp


示例15: request_mupdate

 request_mupdate()
 {
    setPCode(TAIR_REQ_MUPDATE_PACKET);
    server_flag = 0;
    count = 0;
    len = 8;
    key_and_values = NULL;
 }
开发者ID:xiangyong,项目名称:platform,代码行数:8,代码来源:mupdate_packet.hpp


示例16: request_zrevrank

    request_zrevrank (request_zrevrank & packet)
    {
      setPCode (packet.getPCode ());
      server_flag = packet.server_flag;
      area = packet.area;

      key.clone (packet.key);
    }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:8,代码来源:zrevrank_packet.hpp


示例17: request_prefix_puts

 request_prefix_puts() {
   setPCode(TAIR_REQ_PREFIX_PUTS_PACKET);
   area = 0;
   key_count = 0;
   packet_id = 0;
   pkey = NULL;
   kvmap = NULL;
 }
开发者ID:xiangyong,项目名称:platform,代码行数:8,代码来源:prefix_puts_packet.hpp


示例18: request_sadd

 request_sadd()
 {
   setPCode(TAIR_REQ_SADD_PACKET);
   server_flag = 0;
   area = 0;
   version = 0;
   expire = 0;
 }
开发者ID:zbcwilliam,项目名称:tair-rdb-modified,代码行数:8,代码来源:sadd_packet.hpp


示例19: request_expire

 request_expire (request_expire & packet)
 {
   setPCode (packet.getPCode ());
   server_flag = packet.server_flag;
   area = packet.area;
   expiretime = packet.expiretime;
   key.clone (packet.key);
 }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:8,代码来源:expire_packet.hpp


示例20: request_persist

    request_persist (request_persist & packet)
    {
      setPCode (packet.getPCode ());
      server_flag = packet.server_flag;
      area = packet.area;

      key.clone (packet.key);
    }
开发者ID:IsCaster,项目名称:tair-rdb,代码行数:8,代码来源:persist_packet.hpp



注:本文中的setPCode函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setPage函数代码示例发布时间:2022-05-30
下一篇:
C++ setOwner函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap