Table of Contents

Struct UntypedList

Namespace
BepuPhysics.CollisionDetection
Assembly
BepuPhysics.dll
public struct UntypedList
Inherited Members

Constructors

UntypedList(int, int, BufferPool)

public UntypedList(int elementSizeInBytes, int initialCapacityInElements, BufferPool pool)

Parameters

elementSizeInBytes int
initialCapacityInElements int
pool BufferPool

Fields

Buffer

public Buffer<byte> Buffer

Field Value

Buffer<byte>

ByteCount

public int ByteCount

Field Value

int

Count

public int Count

Field Value

int

ElementSizeInBytes

public int ElementSizeInBytes

Field Value

int

Methods

Add<T>(ref T, int, BufferPool)

public int Add<T>(ref T data, int minimumCount, BufferPool pool)

Parameters

data T
minimumCount int
pool BufferPool

Returns

int

Type Parameters

T

Allocate(int, int, BufferPool)

Allocates an element in the list, initializing the backing buffer if needed.

public int Allocate(int elementSizeInBytes, int minimumElementCount, BufferPool pool)

Parameters

elementSizeInBytes int

Number of bytes per element.

minimumElementCount int

Minimum size of the backing buffer to create if this is a new allocation.

pool BufferPool

Pool to pull allocations from.

Returns

int

Index of the element in bytes within the list's buffer.

AllocateUnsafely()

public byte* AllocateUnsafely()

Returns

byte*

AllocateUnsafely<T>()

public ref T AllocateUnsafely<T>()

Returns

T

Type Parameters

T

Allocate<T>(int, BufferPool)

public int Allocate<T>(int minimumElementCount, BufferPool pool)

Parameters

minimumElementCount int
pool BufferPool

Returns

int

Type Parameters

T

GetFromBytes<T>(int)

public ref T GetFromBytes<T>(int byteIndex)

Parameters

byteIndex int

Returns

T

Type Parameters

T

Get<T>(int)

public ref T Get<T>(int index)

Parameters

index int

Returns

T

Type Parameters

T