Refactor {send,read}_message() #11
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ryze/ff2mpv-rust#11
Loading…
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thanks for another PR! Looking at the changes, we now lock the streams for buffered I/O (which I should have done before) and use a more elegant length buffer using
to_ne_bytes()
. Sounds good!I think it would be more readable to do a binding for
Take
hereThe reason I removed the
BufReader
is that the docs said it doesn't make much difference if only used once.Sorry for not adding some context.
No worries! I looked it up myself,
StdinLock
andStdoutLock
both implementBufRead
:3