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 read(dest, length, timeout) and write(src, length, timeout) #544

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Add read(dest, length, timeout) and write(src, length, timeout) #544

merged 1 commit into from
Nov 8, 2023

Conversation

wh201906
Copy link
Contributor

@wh201906 wh201906 commented Nov 5, 2023

Sometimes the users might need to receive or send bytes with specified length in a big buffer. I think read(dest, length, timeout) and write(src, length, timeout) are very helpful for this case because they don't need to do extra trim/copy work, which saves the time and memory.

@wh201906 wh201906 changed the title Add read(dest, length) and write(src, length, timeout) Add read(dest, length, timeout) and write(src, length, timeout) Nov 5, 2023
@kai-morich
Copy link
Collaborator

looks good, I will run the integration tests against this change.

@wh201906
Copy link
Contributor Author

wh201906 commented Nov 6, 2023

Thanks

@kai-morich kai-morich merged commit 573c7e4 into mik3y:master Nov 8, 2023
@wh201906 wh201906 deleted the read_write_length branch November 9, 2023 01:06
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