package
Version:
v0.11.10
Opens a new window with list of versions in this module.
Published: Nov 4, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Pack[T any](src []T, states []uint64) (dst []T)
Pack shrinks the slice s to a total amount of values which have not a state of zero (0).
The order of the elements remains the same.
func Unpack[T any](src []T, size int) (dst []T)
Unpack grows the slice s to the next multiple of size.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.