示例#1
0
 public PDataTF(int Pdulen, byte[] buf)
 {
     this.Pdulen = Pdulen;
     this.wpos = Pdulen + 12;
     this.buf = buf;
     int off = 6;
     while (off <= Pdulen)
     {
         PDV pdv = new PDV(this, off);
         pdvs.Add(pdv);
         off += 4 + pdv.length();
     }
     if (off != Pdulen + 6)
     {
         throw new PduException("Illegal " + ToString(), new AAbort(AAbort.SERVICE_PROVIDER, AAbort.INVALID_PDU_PARAMETER_VALUE));
     }
     this.enu = pdvs.GetEnumerator();
 }