Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Protobuf missing MAGIC_PBE1 #1

Open
RyanYANG52 opened this issue Nov 30, 2019 · 0 comments
Open

Protobuf missing MAGIC_PBE1 #1

RyanYANG52 opened this issue Nov 30, 2019 · 0 comments

Comments

@RyanYANG52
Copy link

First of all, Awesome work !!!

使用前端xviz读取pbe的时候,会根据ArrayBuffer前四位来区分gle和pbe,参考 https://github.com/uber/xviz/blob/bd7cc81cfbc024c6f99f1aaf20f363a955fad1f0/modules/io/src/writers/xviz-protobuf-writer.js#L74

self._source.write(obj.SerializeToString(), fname) 应该先write b'PBE1'

还有一点小建议是json序列化的时候,可以不用自带的json,使用比如ujson,这样速度会快点,另外还能直接设置double_precision,json文件会小很多。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant