Protocal Buffers

254 阅读1分钟

官方链接

Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages.

Protocal Buffers 是谷歌用于序列化结构化数据的,支持多语言,多平台,具有可扩展性的机制,类似于XML,但更小、更快、更简单。你可以定义你想要的数据结构,然后指定生成特定语言的代码可以通过各种数据流/语言对这个数据结构进行写入和读取操作。