internal

package
v0.0.0-...-f00212e Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeOf

func TypeOf[T any]() reflect.Type

Types

type FieldType

type FieldType struct {
	Name string
	Type reflect.Type
}

type FieldValue

type FieldValue struct {
	// contains filtered or unexported fields
}

type Iterator

type Iterator[ID comparable] struct {
	// contains filtered or unexported fields
}

func (Iterator[ID]) ForEach

func (iter Iterator[ID]) ForEach(f func(ID, unsafe.Pointer) bool)

type SparseArray

type SparseArray[ID comparable] struct {
	// contains filtered or unexported fields
}

func NewSparseArray

func NewSparseArray[ID comparable]() *SparseArray[ID]

func (*SparseArray[ID]) Add

func (arr *SparseArray[ID]) Add(id ID, ptr unsafe.Pointer)

type Storage

type Storage[ID comparable] struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage[ID comparable]() Storage[ID]

func (*Storage[ID]) Add

func (s *Storage[ID]) Add(id ID, bundle any) error

func (*Storage[ID]) Count

func (s *Storage[ID]) Count() int

func (*Storage[ID]) Iterator

func (s *Storage[ID]) Iterator(typ reflect.Type) (Iterator[ID], error)

Jump to

Keyboard shortcuts

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