ringBuffer 改写