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; } }
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; } }
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; }
public void ReplaceHeaderEntry(int index, ReceiveSecurityHeaderEntry element) { this.elements[index] = element; }
public void GetElementEntry(int index, out ReceiveSecurityHeaderEntry element) { element = this.elements[index]; }