← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 5422

Protobuf模式生成代码

理解等级:高级

Protocol Buffers用声明的模式约束二进制消息,并由各语言编译器生成序列化和反序列化过程。它提供紧凑交换与跨语言使用,模式也可充当接口文档。代价是工具与模式治理,不如文本直接观察;兼容规则和字段能力依具体版本核验,不能因代码自动生成就忽略语义变化。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 软件接口 · 查看原书依据

      You specify your message schema in a proto file, which is then compiled by a language-specific protocol buffer compiler. The procedures generated by the compilers will be used by an actor to serialize and by an element to deserialize the data.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第15章《软件接口》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch15.html) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:You specify your message schema in a proto file, which is then compiled by a language-specific protocol buffer compiler. The procedures generated by the compilers will be used by an actor to serialize and by an element to deserialize the data.