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; }
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; }
public void setTag(BerTags tg) { tag = (ulong)tg; }