EpcEncoder.DecodeField Method

TegoOS

EpcEncoderDecodeField 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)
Syntax
public virtual int DecodeField(
	PropertyInfo propertyInfo,
	EpcFieldAttribute fieldAttribute,
	ushort[] words,
	int nextBitAddress,
	int bitCount = 0,
	string formatString = null
)
Public Overridable 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
public:
virtual 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 
override 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: Int32
Number of bits comprising the decoded field.

Implements

IEpcEncoderDecodeField(PropertyInfo, EpcFieldAttribute, UInt16, Int32, Int32, String)
See Also