Parsing Protocol-Buffers without knowing the .proto

前端 未结 2 783
轻奢々
轻奢々 2021-02-01 05:40

I know that protocol-buffers are a serialized format that requires a message format in the .proto in order to read back properly. But I have a file that I do not know the proper

2条回答
  •  故里飘歌
    2021-02-01 06:36

    I found it useful to convert the raw message to text using protoc --decode_raw < file. If the file actually contains multiple (length-prefixed) messages, save them into separate files first.

提交回复
热议问题