結果 : how does a ring buffer work