A Sandcastle Documented Class Library
![]() | IEpcFieldEncoderDecode Method |
Decodes a field, reading its value from a word array and setting the corresponding property.
Namespace: Tego.Rfid.Tds
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)

int Decode( EpcEncoder epc, PropertyInfo propertyInfo, ushort[] words, int bitAddress, int bitCount, string formatString )
Function Decode ( epc As EpcEncoder, propertyInfo As PropertyInfo, words As UShort(), bitAddress As Integer, bitCount As Integer, formatString As String ) As Integer
int Decode( EpcEncoder^ epc, PropertyInfo^ propertyInfo, array<unsigned short>^ words, int bitAddress, int bitCount, String^ formatString )
abstract Decode : epc : EpcEncoder * propertyInfo : PropertyInfo * words : uint16[] * bitAddress : int * bitCount : int * formatString : string -> int
Parameters
- epc
- Type: Tego.Rfid.TdsEpcEncoder
EPC encoder in which to set field. - propertyInfo
- Type: System.ReflectionPropertyInfo
Property which represents the field to decode. - words
- Type: SystemUInt16
Word array from which to read the encoded field. - bitAddress
- Type: SystemInt32
Address at which to read the field. - bitCount
- Type: SystemInt32
Number of bits to decode. Default VARIABLE if not known. - formatString
- Type: SystemString
Optional format string used to pad some numeric values.
Return Value
Type: Int32Number of bits decoded.
