sliceFreeChainWithOffset

fnvoid sliceFreeChainWithOffset(size_t blockSize, void * memChain, size_t nextOffset)

Frees a linked list of memory blocks of structure type type.

The memory blocks must be equal-sized, allocated via [glib.global.sliceAlloc] or [glib.global.sliceAlloc0] and linked together by a next pointer (similar to #GSList). The offset of the next field in each block is passed as third argument. Note that the exact release behaviour can be changed with the [G_DEBUG=gc-friendly][G_DEBUG] environment variable.

If mem_chain is null, this function does nothing.

Since GLib 2.76 this always uses the system free_sized() implementation internally.

Parameters

blockSizethe size of the blocks
memChaina pointer to the first block of the chain
nextOffsetthe offset of the next field in the blocks