Does serial buffer discard old data when buffer is full and new data comes?

liudr:
I have some serial sensors that are free running. They power up and start sending data to my MEGA. I have thought that all serial buffers will discard one oldest byte and take in a new byte when the ring buffer is full. My test today kind of indicates differently. Am I correct in assuming the buffer discard old and takes in new when it is full? Thanks.

It's a software circular buffer (using a head and tail pointer with a fixed sized array) in the serial library so if it gets full and another characters arrives it should just overwrite the oldest character in the buffer with the new character I would think.

Lefty