Skip to content

Read exactly X bytes from stream #67975

Answered by gfoidl
TonyValenti asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a built in way to do that or do I have to manually call read over and over and advance my position in my buffer?

Loop manually (as documented) or wait for #16598.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TonyValenti
Comment options

Answer selected by TonyValenti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants