Skip to content
Discussion options

You must be logged in to vote

It seems that it's the normal behavior of read() and if we want to read the full buffer we need read_exact()

https://doc.rust-lang.org/stable/std/io/trait.Read.html#tymethod.read

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant