add copy()

This commit is contained in:
Gregory Burd 2024-05-05 16:45:55 -04:00
parent c53bd53f9a
commit 3b8e083806

View file

@ -110,6 +110,12 @@ typedef uint64_t sm_bitvec_t;
*/
sparsemap_t *sparsemap(size_t size);
/** @brief Allocate a new, copy of the \b other sparsemap_t.
*
* @param[in] other The sparsemap to copy.
*/
sparsemap_t *sparsemap_copy(sparsemap_t *other);
/** @brief Allocate a new, empty sparsemap_t that references (wraps) the buffer
* \b data of \b size bytes to use for storage of bitmap data.
*