Module slab_arc

Module slab_arc 

Source
Expand description

A reference counted allocation

A SlabArc is obtained by consuming a SlabBox. As the underlying allocation may be shared, a SlabArc does not allow for the contents to be modified. SlabArcs may be cheaply cloned (which increases the reference count), allowing for multiple (immutable) access to the same data. The underlying memory is freed for reuse automatically when the reference count reaches zero.

Structsยง

RerooterKey
SlabArc
A reference counted, BSlab allocated chunk of bytes.