SpringCard Smart Readers library for .NET  19.9.20
Communicate and manage SpringCard Smart Reader devices
SpringCard.SmartReader.Config.TLV Class Reference

The TLV object represents a Tag + Length + (optional) Value sequence. More...

Public Member Functions

byte [] Serialize ()
 Return the TLV sequence in a single buffer.
 
void Append (byte[] Bytes)
 Add some bytes into the Value.
 
void Append (TLV tlv)
 Add a child TLV into the Value.
 
 TLV (byte Tag)
 Instanciate a new TLV, with the given Tag and an empty Value.
 
 TLV (TAG Tag)
 Instanciate a new TLV, with the given Tag and an empty Value.
 
 TLV (byte Tag, byte[] Value)
 Instanciate a new TLV, with the given Tag and a non-empty Value.
 
 TLV (TAG Tag, byte[] Value)
 Instanciate a new TLV, with the given Tag and a non-empty Value.
 
 TLV (byte Tag, TLV Value)
 Instanciate a new TLV, with the given Tag, the Value itself being a child TLV.
 
 TLV (TAG Tag, TLV Value)
 Instanciate a new TLV, with the given Tag, the Value itself being a child TLV.
 
 TLV (byte Tag, TLV[] Value)
 Instanciate a new TLV, with the given Tag, the Value itself being an array of child TLV s.
 
 TLV (TAG Tag, TLV[] Value)
 Instanciate a new TLV, with the given Tag, the Value itself being an array of child TLV s.
 

Static Public Member Functions

static TLV Deserialize (byte[] buffer, out byte[] remaining)
 Deserialize a sequence of bytes into a TLV object. The remaining out parameter receive the remaining part of the buffer, if some.
 
static TLV Deserialize (byte[] buffer)
 Deserialize a sequence of bytes into a TLV object.
 
static List< TLVDeserializeList (byte[] buffer)
 Deserialize a sequence of bytes into a list of TLV objects.
 
static byte [] SerializeList (List< TLV > tlvList)
 Serialize a list of TLV objects into a single sequence of bytes.
 
static byte [] SerializeList (SortedDictionary< TAG, byte[]> tlvList)
 Serialize a list of TLV objects into a single sequence of bytes.
 

Public Attributes

TAG Tag
 The Tag.
 
byte [] Value
 The Value.
 

Properties

int Length [get]
 The Length (of the Value).
 

Detailed Description

The TLV object represents a Tag + Length + (optional) Value sequence.


The documentation for this class was generated from the following file: