Beispiel #1
0
 public Ber(BerClass cl, BerTags tg, bool c)
 {
     allSet();
     if ((int)cl > 3)
     {
         throw new Exception("class id must be from 0 to 3");
     }
     tagClass   = (byte)((int)cl & 3);
     _container = c;
     _tag       = (ulong)tg;
 }
Beispiel #2
0
 public Ber(BerClass cl, BerTags tg, bool c, byte[] pl)
 {
     allSet();
     if ((int)cl > 3)
     {
         throw new Exception("class id must be from 0 to 3");
     }
     tagClass       = (byte)((int)cl & 3);
     _container     = c;
     _tag           = (ulong)tg;
     _payload       = pl;
     _payloadLength = pl.Length;
 }
Beispiel #3
0
 public void setTag(BerTags tg)
 {
     tag = (ulong)tg;
 }