リングバッファにどうぞ♪ https://rio.st/2007/12/19/%e3%83%aa%e3%83%b3%e3%82%b0%e3%83%90%e3%83%83%e3%83%95%e3%82%a1%e3%81%ab%e3%81%a9%e3%81%86%e3%81%9e%e2%99%aa/