vectors

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vector

type Vector[T any] struct {
	Size     int
	Capacity int
	Data     *T
	// contains filtered or unexported fields
}

Vector is a representation of ImVector from Dear ImGui.

func NewVectorFromC

func NewVectorFromC[T any, CINT ~int32](size, capacity CINT, data *T) Vector[T]

func (*Vector[T]) Pinner

func (v *Vector[T]) Pinner() *runtime.Pinner

func (Vector[T]) Slice

func (v Vector[T]) Slice() []T

Slice converts a Vector to a slice []T.

Jump to

Keyboard shortcuts

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