Binary format
Lutra binary format is a method of serializing structured data. It can be used to transfer data between programming languages, processes or devices.
Schema of the data structures is defined with the Lutra language. This schema is used to generate code in the desired language.
The format supports partial decoding, i.e. reading only a part of the encoded data structure.
Schema evolution is not supported. In other words, to deserialize a structure, it must use the exact schema it has been serialized with. Any other schema might work, but the format does not provide any guarantees.
Currently supported languages:
- Rust
- Python
Example¶
Given the type definition above, the value constant would be encoded as: