You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to know Buffer.toString() consumed how many bytes? #4755
Now I need to call Buffer.length - Buffer.byteLength(str). It looks like not efficient.
And it makes hard to correctly convert chunks to string in TransformStream.
Activity
bnoordhuis commentedon Jan 19, 2016
I think you answered your own question? If you're doing partial writes, use a
require('string_decoder').StringDecoder.Can you direct support questions to SO or help next time? Thanks.
heroboy commentedon Jan 19, 2016
Sorry. Because I didn't find a similar link in page: https://nodejs.org/en/get-involved/