mcquerol / mcquerol/ringbuffer-cpp
Add Overwrite Policy Flag
未关闭
@mcquerol 已经在做这个了。
开始于 2025年5月8日。
enhancement
- 主要语言
- C++
- 星标
- 1
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
Goal: Allow buffer to optionally overwrite oldest data when full.
- Implementation:
- Add bool allowOverwrite as a constructor argument (default false).
- In write(), check this flag:
- If true, overwrite oldest and advance readIndex.
- If false, behave as current (do not write).
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。