/// <summary>Constructs a CircularBufferReader</summary> /// <param name="buffer">Buffer to use</summary> public CircularBufferReader(CircularBuffer buffer) { this.buffer = buffer; }
/// <summary></summary> /// <returns>Clone of the buffer</returns> public CircularBuffer Clone() { CircularBuffer buffer = new CircularBuffer(this.internalData.Length); System.Array.Copy(this.internalData, 0, buffer.internalData, 0, this.internalData.Length); buffer.readPosition = this.readPosition; buffer.writePosition = this.writePosition; return buffer; }
/// <summary>Constructs a CircularBufferWriter</summary> /// <param name="buffer">Buffer to use</summary> public CircularBufferWriter(CircularBuffer buffer) { this.buffer = buffer; }