Protobuf streaming (lazy serialization) API

前端 未结 3 2029
星月不相逢
星月不相逢 2021-02-10 00:57

We have an Android app that uses Protocol Buffers to store application data. The data format (roughly) is a single protobuf (\"container\") that contains a list of protobufs (\"

3条回答
  •  -上瘾入骨i
    2021-02-10 01:14

    There is no such thing. A protobuf is a packed structure. In order to do this effectively it would need all the data. You will have to add the "streaming protocol" yourself. Maybe send a protobuf msg every N items.

提交回复
热议问题