循环缓冲区使用&运算 常见的循环buffer更新索引方法 idx = idx % bufferlen 优化 bufferlen必须是2的n次 idx = idx & (bufferlen -1) https://github.com/pswarfound