soa

package
v0.11.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pack

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

func Unpack[T any](src []T, size int) (dst []T)

Unpack grows the slice s to the next multiple of size.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL