ToSubpacketArray() private method

private ToSubpacketArray ( ) : SignatureSubpacket[]
return SignatureSubpacket[]
Example #1
0
 public void SetUnhashedSubpackets(
     PgpSignatureSubpacketVector unhashedPackets)
 {
     unhashed = unhashedPackets == null
                         ?       EmptySignatureSubpackets
                         :       unhashedPackets.ToSubpacketArray();
 }
Example #2
0
 public void SetHashedSubpackets(
     PgpSignatureSubpacketVector hashedPackets)
 {
     hashed = hashedPackets == null
                         ?       EmptySignatureSubpackets
                         :       hashedPackets.ToSubpacketArray();
 }
Example #3
0
 ///  <summary>
 ///  Constructor for pre-initialising the generator from an existing one.
 ///  </summary>
 ///  <param name="sigSubV">
 ///  sigSubV an initial set of subpackets.
 ///  </param>
 public PgpSignatureSubpacketGenerator(PgpSignatureSubpacketVector sigSubV)
 {
     if (sigSubV != null)
     {
         SignatureSubpacket[] subs = sigSubV.ToSubpacketArray();
         for (int i = 0; i != sigSubV.Count; i++)
         {
             list.Add(subs[i]);
         }
     }
 }
		public void SetUnhashedSubpackets(
            PgpSignatureSubpacketVector unhashedPackets)
        {
			unhashed = unhashedPackets == null
				?	EmptySignatureSubpackets
				:	unhashedPackets.ToSubpacketArray();
        }
		public void SetHashedSubpackets(
            PgpSignatureSubpacketVector hashedPackets)
        {
			hashed = hashedPackets == null
				?	EmptySignatureSubpackets
				:	hashedPackets.ToSubpacketArray();
        }