public void AddConfirmation(byte[] value, bool encrypted) { if (this.confirmations.Length == this.length) { SignatureConfirmation[] destinationArray = new SignatureConfirmation[this.length * 2]; Array.Copy(this.confirmations, 0, destinationArray, 0, this.length); this.confirmations = destinationArray; } this.confirmations[this.length] = new SignatureConfirmation(value); this.length++; this.encrypted |= encrypted; }
public void AddConfirmation(byte[] value, bool encrypted) { if (confirmations.Length == length) { SignatureConfirmation[] newConfirmations = new SignatureConfirmation[length * 2]; Array.Copy(confirmations, 0, newConfirmations, 0, length); confirmations = newConfirmations; } confirmations[length] = new SignatureConfirmation(value); ++length; this.encrypted |= encrypted; }
public void AddConfirmation(byte[] value, bool encrypted) { if (_confirmations.Length == Count) { SignatureConfirmation[] newConfirmations = new SignatureConfirmation[Count * 2]; Array.Copy(_confirmations, 0, newConfirmations, 0, Count); _confirmations = newConfirmations; } _confirmations[Count] = new SignatureConfirmation(value); ++Count; IsMarkedForEncryption |= encrypted; }