mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Updates with latest TommyDS.
This commit is contained in:
parent
b423e7490e
commit
923a8237b6
3 changed files with 8 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
|||
* the already allocated memory, and then not increasing the heap fragmentation.
|
||||
* This means that the address of the allocated blocks never change.
|
||||
*
|
||||
* Allocated blocks are always of the same fixed size of 64 KiB.
|
||||
* Allocated blocks are always of the same fixed size of 64 Ki pointers.
|
||||
*/
|
||||
|
||||
#ifndef __TOMMYARRAYBLK_H
|
||||
|
|
|
|||
|
|
@ -32,6 +32,9 @@
|
|||
*
|
||||
* This is very similar at ::tommy_arrayblk, but it allows to store elements of any
|
||||
* size and not just pointers.
|
||||
*
|
||||
* Note that in this case tommy_arrayblkof_ref() returns a pointer at the element,
|
||||
* and it should be used for both get() and set() operation.
|
||||
*/
|
||||
|
||||
#ifndef __TOMMYARRAYBLKOF_H
|
||||
|
|
@ -61,6 +64,7 @@ typedef struct tommy_arrayblkof_struct {
|
|||
|
||||
/**
|
||||
* Initializes the array.
|
||||
* \param element_size Size in byte of the element to store in the array.
|
||||
*/
|
||||
void tommy_arrayblkof_init(tommy_arrayblkof* array, unsigned element_size);
|
||||
|
||||
|
|
|
|||
|
|
@ -170,6 +170,9 @@ void tommy_hashdyn_init(tommy_hashdyn* hashdyn);
|
|||
|
||||
/**
|
||||
* Deinitializes the hashtable.
|
||||
*
|
||||
* You can call this function with elements still contained,
|
||||
* but such elements are not going to be freed by this call.
|
||||
*/
|
||||
void tommy_hashdyn_done(tommy_hashdyn* hashdyn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue