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; }