I want to collect and organize various information encoding formats in the CYFS protocol in this document. By reading this article, you can gain the ability to:
Correctly encode various information to store or exchange with other peers.
Correctly restore the encoded information obtained from the storage system or other peers.
When designing a new composite type, understand the data encoding specification, and be able to correctly select the appropriate basic type for encoding and decoding.
Table of contents
I want to collect and organize various information encoding formats in the
CYFS
protocol in this document. By reading this article, you can gain the ability to:I. Basic type
[x] ## Multiple encoding methods (Raw/Protobuf/JSON)
[ ] ## [Simple type (integer/variable integer/float/timestamp/string/ObjectId...)]()
[ ] ## [Composite types (arrays/enumerations/structs, etc.)]()
II. Object encoding format
[ ] ## [Object general structure]()
[ ] ## [Various object encoding formats (desc/body)]()