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
TType of the packed value.
- Implements
-
IEquatable<Pack<T>>
- 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
ValueTThe value being packed.
RepetitionintHow many times it repeats consecutively.
Properties
Repetition
How many times it repeats consecutively.
public int Repetition { readonly get; set; }
Property Value
Value
The value being packed.
public T Value { readonly get; set; }
Property Value
- T