Skip to content

Struct SlotHandle

Namespace: Apogee.Core.Collections
Assembly: Apogee.Core.dll

Names a slot of a and the generation it had when the item was added. Once the slot is reused the generation differs, so a stale handle is recognised instead of reaching the new item. default is never valid.

public readonly record struct SlotHandle : IEquatable<SlotHandle>

Implements

IEquatable<SlotHandle>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SlotHandle(uint, uint)

Names a slot of a and the generation it had when the item was added. Once the slot is reused the generation differs, so a stale handle is recognised instead of reaching the new item. default is never valid.

public SlotHandle(uint Index, uint Generation)

Parameters

Index uint

Generation uint

Properties

Generation

public uint Generation { get; init; }

Property Value

uint

Index

public uint Index { get; init; }

Property Value

uint

IsNull

public bool IsNull { get; }

Property Value

bool

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.