Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a ring buffer implementation #4

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Add a ring buffer implementation #4

merged 1 commit into from
Feb 13, 2024

Conversation

s-ludwig
Copy link
Member

This takes vibe.internal.array.FixedRingBuffer (which is more developed than vibe.utils.array.FixedRingBuffer) and polishes it up, while not changing the implementation:

  • Adds documentation comments
  • Formats the code properly
  • Renames a removeAt, pop(Front/Back)(N) to match std.container.array.Array
  • Ensures the general interface is safe (with exceptions, such as dispose())

This takes vibe.internal.array.FixedRingBuffer (which is more developed than vibe.utils.array.FixedRingBuffer) and polishes it up, while not changing the implementation:

- Adds documentation comments
- Formats the code properly
- Renames a removeAt, pop(Front/Back)(N) to match std.container.array.Array
- Ensures the general interface is safe (with exceptions, such as dispose())
@s-ludwig s-ludwig merged commit a752615 into master Feb 13, 2024
12 checks passed
@s-ludwig s-ludwig deleted the ringbuffer branch February 13, 2024 11:50
@s-ludwig s-ludwig restored the ringbuffer branch February 13, 2024 11:50
@s-ludwig s-ludwig deleted the ringbuffer branch February 13, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants