<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Protobuf on 潘忠显的技术博客</title>
    <link>https://panzhongxian.cn/tags/protobuf/</link>
    <description>Recent content in Protobuf on 潘忠显的技术博客</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Sun, 28 Jun 2020 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://panzhongxian.cn/tags/protobuf/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>好客若干优化点</title>
      <link>https://panzhongxian.cn/cn/2020/06/hulk-01/</link>
      <pubDate>Sun, 28 Jun 2020 00:00:00 +0000</pubDate>
      <guid>https://panzhongxian.cn/cn/2020/06/hulk-01/</guid>
      <description>&lt;h2 id=&#34;queueentry-可以用-protobuf-定义封装&#34;&gt;&lt;code&gt;QueueEntry&lt;/code&gt; 可以用 Protobuf 定义封装&lt;/h2&gt;&#xA;&lt;p&gt;几类函数&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;set/get类&lt;/li&gt;&#xA;&lt;li&gt;序列化与反序列化&lt;/li&gt;&#xA;&lt;li&gt;状态判断IsXXX&lt;/li&gt;&#xA;&lt;li&gt;枚举与描述的转换&lt;/li&gt;&#xA;&lt;li&gt;内部函数，如根据几个字段拼出队列名&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;前三类都可以直接使用protobuf的类来实现&#34;&gt;前三类都可以直接使用Protobuf的类来实现&lt;/h3&gt;&#xA;&lt;h3 id=&#34;枚举与描述的转换&#34;&gt;枚举与描述的转换&lt;/h3&gt;&#xA;&lt;p&gt;关于枚举和描述的转换，Protobuf也是支持的。使用Protobuf自带的Message例子：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
