package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 2, 2024
License: MPL-2.0, ISC
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Slab is an implementation of the internal registry free list. A zero-value
instance is a valid instance. A slab is safe to use concurrently.
Delete removes the entry at the given index.
Get gets the entry at the given index.
Grow grows the slab to the given capacity.
Pop removes the entry at the given index and returns the old value.
Put stores the entry inside the slab. If once is true, then when the entry is
retrieved using Get, it will also be wiped off the list.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.