A Sandcastle Documented Class Library
![]() | IEpcEncoderDecodeField 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 DecodeField( PropertyInfo propertyInfo, EpcFieldAttribute fieldAttribute, ushort[] words, int nextBitAddress, int bitCount = 0, string formatString = null )
Function DecodeField ( propertyInfo As PropertyInfo, fieldAttribute As EpcFieldAttribute, words As UShort(), nextBitAddress As Integer, Optional bitCount As Integer = 0, Optional formatString As String = Nothing ) As Integer
int DecodeField( PropertyInfo^ propertyInfo, EpcFieldAttribute^ fieldAttribute, array<unsigned short>^ words, int nextBitAddress, int bitCount = 0, String^ formatString = nullptr )
abstract DecodeField : propertyInfo : PropertyInfo * fieldAttribute : EpcFieldAttribute * words : uint16[] * nextBitAddress : int * ?bitCount : int * ?formatString : string (* Defaults: let _bitCount = defaultArg bitCount 0 let _formatString = defaultArg formatString null *) -> int
Parameters
- propertyInfo
- Type: System.ReflectionPropertyInfo
Property which represents this field. - fieldAttribute
- Type: Tego.Rfid.TdsEpcFieldAttribute
EpcAttribute describing this field. - words
- Type: SystemUInt16
Word array from which to read the encoded field. - nextBitAddress
- Type: SystemInt32
Next address calculated from sum of previously decoded lengths. - bitCount (Optional)
- Type: SystemInt32
Number of bits to decode. Default VARIABLE if not known. - formatString (Optional)
- Type: SystemString
Optional format string used to pad some numeric values.
Return Value
Type: Int32Number of bits comprising the decoded field.
