Table of Contents

Struct Pack<T>

Namespace
Utils.Collections
Assembly
Utils.dll

Represents a value and its consecutive repetition count (used in packing).

public record struct Pack<T> : IEquatable<Pack<T>>

Type Parameters

T

Type of the packed value.

Implements
Inherited Members
Extension Methods

Constructors

Pack(T, int)

Represents a value and its consecutive repetition count (used in packing).

public Pack(T Value, int Repetition)

Parameters

Value T

The value being packed.

Repetition int

How many times it repeats consecutively.

Properties

Repetition

How many times it repeats consecutively.

public int Repetition { readonly get; set; }

Property Value

int

Value

The value being packed.

public T Value { readonly get; set; }

Property Value

T