Of course it is. Otherwise the data bytes that happen to be zero prematurely terminate the string. So, the data are arbitrarily modified, introducing potentially very large (orders of magnitude!) errors.
The posted code is, in its entirety, a kluge.
Of course it is. Otherwise the data bytes that happen to be zero prematurely terminate the string. So, the data are arbitrarily modified, introducing potentially very large (orders of magnitude!) errors.
The posted code is, in its entirety, a kluge.