-
Notifications
You must be signed in to change notification settings - Fork 0
blackball/dbio
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Simple Binary IO ================== Discription ------ A simple raw memory data IO solution for temporary use. Usgae ------ If you have your own types to streaming, write your own pack/unpack method. int pack_utype(struct db* dbase, int sz, utype *t) { int ecode = 0; // @todo check dbase != NULL struct db_ndoe *node = new_node(sz); // memcpy your data into node->data // insert node into dbase ecode = dump(dbase, node); return ecode; } int unpack_utype(...); // pls check example in example.c // first struct db *dbase = createdb(123, "name.db", sz_of_node); for(;;) { ...; pack_utype(...); ...; } writedb(dbase); // more, pls goto example.cpp
About
A silly general data (un)serilization lib.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published