Skip to content

try_read_slice and try_write_slice#257

Merged
xv-pete-m merged 1 commit intoexpressvpn:mainfrom
markasoftware:markasoftware/read-write-slices
Aug 16, 2025
Merged

try_read_slice and try_write_slice#257
xv-pete-m merged 1 commit intoexpressvpn:mainfrom
markasoftware:markasoftware/read-write-slices

Conversation

@markasoftware
Copy link
Contributor

This is useful for those of us not using BytesMut in our own applications. Since BytesMut is always on the heap this is good when you want to avoid heap allocations.

I should probably add a test for try_read_slice at least since it's not called from try_read...

Resolves #256

@markasoftware markasoftware requested a review from a team as a code owner May 15, 2025 20:30
Copy link
Contributor

@kp-mariappan-ramasamy kp-mariappan-ramasamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Minor comment about safety comments.

Also we allow only signed commits to the repo. Can you please sign the commit and push ?

@markasoftware markasoftware force-pushed the markasoftware/read-write-slices branch 2 times, most recently from 2dd2964 to 328d7df Compare July 7, 2025 21:04
@markasoftware
Copy link
Contributor Author

I've fixed the comment and signed the commit. Thanks!

@kp-mariappan-ramasamy kp-mariappan-ramasamy force-pushed the markasoftware/read-write-slices branch 2 times, most recently from 328d7df to 7ddcc79 Compare August 14, 2025 23:59
@kp-mariappan-ramasamy kp-mariappan-ramasamy force-pushed the markasoftware/read-write-slices branch from 7ddcc79 to a207ea4 Compare August 15, 2025 02:43
@kp-mariappan-ramasamy
Copy link
Contributor

LGTM, thanks for the contribution

@markasoftware
Copy link
Contributor Author

Thanks for the review @kp-mariappan-ramasamy , but I'm unable to merge this:

New changes require approval from someone other than kp-mariappan-ramasamy because they were the last pusher.

@xv-pete-m xv-pete-m merged commit 63e49de into expressvpn:main Aug 16, 2025
13 checks passed
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.

Does try_write really need data_in: &mut BytesMut?

3 participants