コード例 #1
0
 private void EnsureCapacityToAdd()
 {
     if (Count == _elements.Length)
     {
         ReceiveSecurityHeaderEntry[] newElements = new ReceiveSecurityHeaderEntry[_elements.Length * 2];
         Array.Copy(_elements, 0, newElements, 0, Count);
         _elements = newElements;
     }
 }
 void EnsureCapacityToAdd()
 {
     if (this.count == this.elements.Length)
     {
         ReceiveSecurityHeaderEntry[] newElements = new ReceiveSecurityHeaderEntry[this.elements.Length * 2];
         Array.Copy(this.elements, 0, newElements, 0, this.count);
         this.elements = newElements;
     }
 }
コード例 #3
0
 private void EnsureCapacityToAdd()
 {
     if (this.count == this.elements.Length)
     {
         ReceiveSecurityHeaderEntry[] destinationArray = new ReceiveSecurityHeaderEntry[this.elements.Length * 2];
         Array.Copy(this.elements, 0, destinationArray, 0, this.count);
         this.elements = destinationArray;
     }
 }
コード例 #4
0
 public void GetElementEntry(int index, out ReceiveSecurityHeaderEntry element)
 {
     Fx.Assert(0 <= index && index < Count, "index out of range");
     element = _elements[index];
 }
 public void ReplaceHeaderEntry(int index, ReceiveSecurityHeaderEntry element)
 {
     Fx.Assert(0 <= index && index < this.count, "");
     this.elements[index] = element;
 }
コード例 #6
0
 public void ReplaceHeaderEntry(int index, ReceiveSecurityHeaderEntry element)
 {
     this.elements[index] = element;
 }
コード例 #7
0
 public void GetElementEntry(int index, out ReceiveSecurityHeaderEntry element)
 {
     element = this.elements[index];
 }