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

Make Readbuf more useful #22

Merged
merged 7 commits into from
Jan 7, 2023
Merged

Make Readbuf more useful #22

merged 7 commits into from
Jan 7, 2023

Conversation

Thomasdezeeuw
Copy link
Owner

Adds a number of useful methods to the ReadBuf type and improve the docs, see the individual commits.

Allows reuse of the buffer.
Make the buffer a bit more useful after reading into it.
Allows for manipulation of the unused bytes of the buffer.
This changes the BufMut implementation to reuse the owned buffer and not
overwrite the existing bytes.
@Thomasdezeeuw Thomasdezeeuw merged commit bd91180 into main Jan 7, 2023
@Thomasdezeeuw Thomasdezeeuw deleted the readbuf-useful branch January 7, 2023 13:05
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.

1 participant