Sproto.SprotoStream.MoveUp C# (CSharp) Method

MoveUp() public method

public MoveUp ( int position, int up_count ) : void
position int
up_count int
return void
		public void MoveUp(int position, int up_count) {
			if (up_count <= 0)
				return;

			long count = this.pos - position;
			for (int i = 0; i < count; i++) {
				this.buffer [position - up_count + i] = this.buffer [position + i];
			}
			this.pos -= up_count;
		}