Table of Contents

Struct FixedArray<T>

Namespace
GB
Assembly
GBSharp.Framework.dll

A fixed-length array of T.

public struct FixedArray<T> where T : struct

Type Parameters

T
Inherited Members

Examples

[Capacity(16)]
private static FixedArray<Enemy> enemies;

Remarks

Specialises at compile time: each distinct element type and capacity becomes its own emitted C struct, so there is no runtime generic machinery and no indirection (thesis section 11).

Properties

this[byte]

public ref T this[byte index] { get; }

Parameters

index byte

Property Value

T

Length

The capacity, known at compile time and folded into a constant.

public readonly byte Length { get; }

Property Value

byte