From 69c29e09f5ec056b80adf8ea065713becf21e3ba Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Tue, 23 Jul 2019 15:50:55 -0400 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=8F=90=E4=BA=A4=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=AF=B4=E6=98=8E=E6=96=87=E4=BB=B6=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E4=B8=94=E5=B0=86=E8=AF=B4=E6=98=8E=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9=E4=B8=BA=20adoc=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.adoc | 16 ++++++++++++++++ README.md | 11 ----------- 2 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 README.adoc delete mode 100644 README.md diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..1577da4 --- /dev/null +++ b/README.adoc @@ -0,0 +1,16 @@ += Protocol Buffers Java 示例程序 + +我们是在实际的数据处理的时候,需要使用 JSON 来序列化数据,但是又考虑到 JSON 在传输的时候数据过大,同时还有很多并不需要的垃圾文件。 +我们才考虑到了 Protocol Buffer 提供的功能。 + +image::https://docs.ossez.com/protocol-buffers-docs/images/protocol-buffers-logo.jpg[] + +== 相关文档和资料 + * https://www.cwiki.us/display/ProtocolBuffers/Protocol+Buffers - cwiki.us 的 Protocol Buffer WIKI + * http://docs.ossez.com/protocol-buffers-docs/index.html - Protocol Buffer 技术资料 + +== 数据序列化和反序列化 +* 序列化: 将数据结构或对象转换成二进制串的过程。 +* 反序列化:将在序列化过程中所生成的二进制串转换成数据结构或者对象的过程。 + +image::https://docs.ossez.com/protocol-buffers-docs/images/protocol-buffers-serialization.png[] diff --git a/README.md b/README.md deleted file mode 100644 index 210949e..0000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Protocol Buffers Example in Java - -This is a companion repository for my [Protocol Buffers course](http://bit.ly/protocol-buffers-github) - -[![course logo](https://i.imgur.com/8fFmWAV.png)](http://bit.ly/protocol-buffers-github) - -# Content - -- Sample Code -- Proper Gradle Setup -- Few .proto files \ No newline at end of file