A Sandcastle Documented Class Library
![]() | NumericFieldEncoderEncode Method |
Encodes a field returning the number of bits used.
Namespace: Tego.Rfid.Tds
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)

public int Encode( EpcEncoder encoder, PropertyInfo propertyInfo, ushort[] words, int bitAddress, int bitCount )
Public Function Encode ( encoder As EpcEncoder, propertyInfo As PropertyInfo, words As UShort(), bitAddress As Integer, bitCount As Integer ) As Integer
public: virtual int Encode( EpcEncoder^ encoder, PropertyInfo^ propertyInfo, array<unsigned short>^ words, int bitAddress, int bitCount ) sealed
abstract Encode : encoder : EpcEncoder * propertyInfo : PropertyInfo * words : uint16[] * bitAddress : int * bitCount : int -> int override Encode : encoder : EpcEncoder * propertyInfo : PropertyInfo * words : uint16[] * bitAddress : int * bitCount : int -> int
Parameters
- encoder
- Type: Tego.Rfid.TdsEpcEncoder
[Missing <param name="encoder"/> documentation for "M:Tego.Rfid.Tds.NumericFieldEncoder.Encode(Tego.Rfid.Tds.EpcEncoder,System.Reflection.PropertyInfo,System.UInt16[],System.Int32,System.Int32)"]
- propertyInfo
- Type: System.ReflectionPropertyInfo
Property which represents the field to encode. - words
- Type: SystemUInt16
Word array in which to write the encoded field. - bitAddress
- Type: SystemInt32
Address at which to write the field. - bitCount
- Type: SystemInt32
Number of bits to encode. Default VARIABLE if not known.
Return Value
Type: Int32Number of bits encoded.
Implements
IEpcFieldEncoderEncode(EpcEncoder, PropertyInfo, UInt16, Int32, Int32)