phf
phf copied to clipboard
Store and Restore
Need to provide interface for storing and restoring (aka exporting and importing) the generated hash function. Applications must currently do this on their own.
Is it enough to serialize content of struct phf? I mean seed, r, m, d_max, g_op by value, and also store content of memory starting from g of r size? No recursion / etc required?
It would be really helpful it Readme.md showed actual use in c/c++: sample keys, generated hash function and how it could be used and what the purpose of it all