We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A call to buf.write() should not write partial characters, whether limited by the target buffer length or explicit length parameter.
buf.write()
Code (explicit length case):
var b = Buffer(256); b.fill(0); var len = b.write("\u1234", 0, 2); console.log(len, b.slice(0,3));
Expected:
0 <Buffer 00 00 00>
Actual:
2 <Buffer e1 88 00>
(There is a partial fix for the UTF-16 case in #692)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A call to
buf.write()
should not write partial characters, whether limited by the target buffer length or explicit length parameter.Code (explicit length case):
Expected:
Actual:
(There is a partial fix for the UTF-16 case in #692)
The text was updated successfully, but these errors were encountered: