Skip to content

check buffer status before writing to decoder . #761

Answered by pschatzmann
aqildad-create asked this question in Q&A
Discussion options

You must be logged in to vote

In your code snipplet there is no buffer that can overflow.
I2SStream is using a blocking write!
However it is good practice to check the result of any write() call

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@aqildad-create
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
4 replies
@aqildad-create
Comment options

@pschatzmann
Comment options

@aqildad-create
Comment options

@pschatzmann
Comment options

Comment options

You must be logged in to vote
2 replies
@pschatzmann
Comment options

@aqildad-create
Comment options

Comment options

You must be logged in to vote
0 replies
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