Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect serialization output? #1314

Open
jakobleck opened this issue Oct 10, 2024 · 0 comments
Open

Redirect serialization output? #1314

jakobleck opened this issue Oct 10, 2024 · 0 comments

Comments

@jakobleck
Copy link

jakobleck commented Oct 10, 2024

Hive under the hood uses the TypeAdapters to transform the HiveModels in a Box into binary data that is written into a file AFAIK. And then read the other way round when needed.
Is there a simple way to redirect this serialization into some sort of stream, e.g. for transmitting the data over a network? Ideally without writing your own implementation of BinaryReader and BinaryWriter.
(Background of the question: I have a set of several dozen HiveModels and am looking for a way to create a backup mechanism without implementing a second serialisation method on top of the hive models...)

The easiest and only way I can think of is just copying the box files. (Which, of course, for encrypted boxes requires later reading them with the same AES key).
Any other suggestions?

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

No branches or pull requests

1 participant