public void Trim() { if (Size == Position) { Size = 0; } else { Move(Position, 0, Size - Position); } Position = 0; }