Class RmtSymbols
Class to encapsulate an array of RmtSymbols.
public class RmtSymbols : IEnumerable
- Inheritance
-
RmtSymbols
- Implements
- Inherited Members
- Extension Methods
Constructors
RmtSymbols()
Construct RmtSymbols object.
public RmtSymbols()
RmtSymbols(RmtSymbol[])
Construct RmtSymbols object with RmtSymbol array.
public RmtSymbols(RmtSymbol[] symbolsArray)
Parameters
symbolsArrayRmtSymbol[]An array or RmtSymbols or null
Properties
Count
Count of number of added symbols.
public int Count { get; }
Property Value
this[int]
Access a RmtSymbol from the array of symbols.
public RmtSymbol this[int index] { get; set; }
Parameters
indexint
Property Value
- RmtSymbol
A RmtSymbol object.
Exceptions
Methods
Add(RmtSymbol)
Add new RMT symbol to the list of symbols that will be sent.
public void Add(RmtSymbol cmd)
Parameters
cmdRmtSymbolRmtSymbol to Add
Clear()
Clear list of symbols.
public void Clear()
GetEnumerator()
GetEnumerator to allow enumeration of RmtSymbols using foreach loop.
public IEnumerator GetEnumerator()
Returns
Serialize()
Serialize the symbols object to native symbols as byte buffer.
public byte[] Serialize()
Returns
- byte[]
Native RmtSymbol in a byte array.
ToArray()
Convert the internal list of symbols to an array.
public RmtSymbol[] ToArray()
Returns
- RmtSymbol[]
An array of RmtSymbol objects.