Interface ISequenceCodec<T>
public interface ISequenceCodec<T>
Type Parameters
T
Methods
AreOutcomesCompatible(string[])
Checks if the outcomes of the model are compatible with the codec.
bool AreOutcomesCompatible(string[] outcomes)
Parameters
outcomesstring[]all possible model outcomes
Returns
CreateSequenceValidator()
Creates a sequence validator which can validate a sequence of outcomes.
ISequenceValidator<T> CreateSequenceValidator()
Returns
Decode(IList<T>)
Decodes a sequence T objects into Span objects.
Span[] Decode(IList<T> c)
Parameters
cIList<T>
Returns
- Span[]
Encode(Span[], int)
Encodes Span objects into a sequence of T objects.
T[] Encode(Span[] names, int length)
Parameters
Returns
- T[]