Beispiel #1
0
 public void TestReadTagShort()
 {
     using (TlvReader reader = new TlvReader(new MemoryStream(new byte[] { 0x21, 0x4, 0x0, 0x1, 0x2, 0x3 })))
     {
         TlvTag tag = reader.ReadTag();
         Assert.AreEqual(new RawTag(0x1, false, true, new byte[] { 0x0, 0x1, 0x2, 0x3 }), tag, "Reader should output correct tag");
     }
 }
Beispiel #2
0
 public NdefMessage(TlvTag tag = TlvTag.NdefMessage)
 {
     Tag     = tag;
     Records = new List <NdefRecord>();
 }