dfuse dbin Library
dbin
is a simple file storage format to pack a stream of protobuf
messages. It is part of dfuse.
Usage
See example usage in merger
First four magic bytes:
Next single byte:
- file format version, current is
0x00
Next three bytes:
- content type, like 'ETH', 'EOS', or whatever..
Next two bytes:
- 10-based string representation of content version: '00' for version 0, '99', for version 99
Rest of the file:
- Length-prefixed messages, with each length specified as 4 bytes big-endian uint32.
- Followed by message of that length, then start over.
- EOF reached when no more bytes exist after the last message boundary.
Contributing
Issues and PR in this repo related strictly to the dbin library.
Report any protocol-specific issues in their
respective repositories
Please first refer to the general
dfuse contribution guide,
if you wish to contribute to this code base.
License
Apache 2.0