Hash Table Serialisation.

How can I serialise a hash table?
Another 7 word masterpiece.

https://stackoverflow.com/help/how-to-ask
You can get the pieces out of it and serialise those. When you deserialise, remember to put them back into a hash table.
depends on its size; if its not too huge just dump the whole thing as a binary blob. If its huge, you will want to store just what is active (key and data). Alternately you can store the data itself and rehash it on reading it back in, and ignore the hash table part entirely.
just dump the whole thing as a binary blob
This will only work if the blob is position independent.
Topic archived. No new replies allowed.