Exemplo n.º 1
0
			/// <summary>Constructs a CircularBufferReader</summary>
			/// <param name="buffer">Buffer to use</summary>		
			public CircularBufferReader(CircularBuffer buffer)
			{
				this.buffer = buffer;
			}
Exemplo n.º 2
0
		/// <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;
		}
Exemplo n.º 3
0
			/// <summary>Constructs a CircularBufferWriter</summary>
			/// <param name="buffer">Buffer to use</summary>		
			public CircularBufferWriter(CircularBuffer buffer)
			{
				this.buffer = buffer;
			}