ANSI C hash table implementation with data in one memory block
问题 I am looking for an open source C implementation of a hash table that keeps all the data in one memory block, so it can be easily send over a network let say. I can only find ones that allocate small pieces of memory for every key-value pair added to it. Thank you very much in advance for all the inputs. EDIT: It doesn't necessarily need to be a hash table, whatever key-value pair table would probably do. 回答1: On a unix system I'd probably utilise a shared memory buffer (see shm_open()), or