コード例 #1
0
			/// <summary>Constructs a CircularBufferReader</summary>
			/// <param name="buffer">Buffer to use</summary>		
			public CircularBufferReader(CircularBuffer buffer)
			{
				this.buffer = buffer;
			}
コード例 #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;
		}
コード例 #3
0
			/// <summary>Constructs a CircularBufferWriter</summary>
			/// <param name="buffer">Buffer to use</summary>		
			public CircularBufferWriter(CircularBuffer buffer)
			{
				this.buffer = buffer;
			}