At the moment there are some data structures and helper functions:
- Memory Pool - Simple Memory Allocator.
- Memory Utils - memcpy(), memset(), memcmp(), memswap() with some variants.
- Memory Block - copy-on-write block.
- Hashed Containers: Hashtable, Set, Bag.
- Queue - FIFO/Circular Queue.
- Cache - LRU/MRU Cache.
- WorkQueue - Lightweight pthread workqueue.
- Sort/Merge functions.
Every "object" is self contained, you can grab the "hashtable.c/hashtable.h" file to be ready to use the hashtable, no other dependence is required. And if data structure require a malloc() you can specify your own allocator during object initialization.
No comments:
Post a Comment