file
shmem__diff__pool_8h
define
shdiff_node_at
(&((POOL)->pool[(POS)]))
define
shdiff_node_pos
((shdiff_pos)((NODE) - (POOL)->pool))
define
shdiff_range_foreach
for (IDX = (RANGE)->start; IDX >= 0; IDX = (PTR)->next) \ if (((PTR) = shdiff_node_at((POOL),IDX))->len > 0)
typedef
typedef int shdiff_pos
function
int shdiff_pool_alloc
(shdiff_pool *pool, uint32_t start_pool)
function
void shdiff_pool_free
(shdiff_pool *list)
function
shdiff_pos shdiff_range_init
(shdiff_pool *list, shdiff_range *run, int op, const char *data, uint32_t offset, uint32_t len)
function
shdiff_pos shdiff_range_insert
(shdiff_pool *list, shdiff_range *run, shdiff_pos pos, int op, const char *data, uint32_t offset, uint32_t len)
function
void shdiff_range_splice
(shdiff_pool *list, shdiff_range *onto, shdiff_pos pos, shdiff_range *from)
function
int shdiff_range_len
(shdiff_pool *pool, shdiff_range *run)
function
void shdiff_range_normalize
(shdiff_pool *pool, shdiff_range *range)
function
void shdiff_node_release
(shdiff_pool *pool, shdiff_pos idx)