Docsv3.31.0
Back to API Reference
Class

ModifierBufferExtensions

static

Extension methods for working with modifier attribute buffers.

public static bool HasFlag(this byte[] buffer, int index)

Checks if a byte flag is set at the specified index.

public static bool HasAnyFlags(this byte[] buffer)

Checks if any flags are set in the buffer.

public static bool HasFlag(this ushort[] buffer, int index)

Checks if a ushort flag is set at the specified index.

public static bool HasAnyFlags(this ushort[] buffer)

Checks if any ushort flags are set in the buffer.

public static void SetFlagRange(this byte[] buffer, int start, int end)

Sets byte flags for a range of indices.

public static bool HasValue(this uint[] buffer, int index)

Checks if a uint value is non-zero at the specified index.

public static uint GetValueOrDefault(this uint[] buffer, int index)

Gets a uint value or returns 0 if out of bounds.

public static void SetValueRange(this uint[] buffer, int start, int end, uint value)

Sets uint values for a range of indices.