Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

WORD PASNSequence::GetEncodedLength (  )  [virtual]

Virtual function used to get the length of object when encoded into ASN format

Reimplemented from PASNObject.

Definition at line 1056 of file pasn.cxx.

References PASNObject::GetASNSequenceStartLength().

Referenced by Encode().

{
  // calculate the length of the sequence
  if (encodedLen == 0) {
    seqLen = 0;
    for (PINDEX i = 0; i < sequence.GetSize(); i++)
      seqLen = (WORD)(seqLen + sequence[i].GetEncodedLength());
    encodedLen = (WORD)(GetASNSequenceStartLength(seqLen) + seqLen);
  }
  return encodedLen;
}


Generated by  Doxygen 1.6.0   Back to index