Arch.Persistence
Arch.Persistence, a tiny persistence framework that supports JSON & Binary.
Last updated
Was this helpful?
Arch.Persistence, a tiny persistence framework that supports JSON & Binary.
Last updated
Was this helpful?
With this package you can easily convert your worlds and entities to JSON and binary and back. This is useful for save files, databases or networking, for example.
Both serializers support (de)serialization with bytes and streams. The binary one also supports the newly introduced IBufferWriter<T>
for streaming purposes.
Limitations:
Single Entity serialization does not support cyclic references and requires custom handling.
World serialization can handle cyclic entity references.
Can not handle cross-world references since those are literally unresolvable.
The order in which components are must be the same for deserialization as for serialization.
JSON is the ultimate data exchange format. If you don't know it, you should really catch up. The usage is very very simple and flexible. Take a look at the or check out the example!
Binary is fast and efficient. However, not human readable. For certain purposes, it is nevertheless perfect.
Since the package uses Messagepack under the hood, you can easily extend it at any time. For an insight into how to create custom serializers, check out the !