Module slab_slice_arc

Module slab_slice_arc 

Source
Expand description

A reference counted, partial view of an allocation

A SlabSliceArc is used to provide a view onto a portion of a SlabArc, without sharing the entire allocation. It shares the same reference count as the underlying SlabArc, meaning the underlying SlabArc will not be freed if there are only SlabSliceArcs remaining. The underlying memory is freed for reuse automatically when the reference count reaches zero.

Structsยง

SlabSliceArc
A partial view, reference counted, BSlab allocated chunk of bytes.
SlabStrArc
A partial view, reference counted, BSlab allocated string slice