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
https://nodejs.org/dist/latest-v20.x/docs/api/buffer.html#static-method-bufferallocunsafesize
The documentation has a incorrect information about the logic to pre-allocate an internal Buffer.
In the documentation has:
... only when size is less than or equal to Buffer.poolSize >> 1 (floor of Buffer.poolSize divided by two).
However, in the code is:
node/lib/buffer.js
Line 442 in bb2dd0e
The text was updated successfully, but these errors were encountered:
many thanks for your suggestion I opened a pr for this @peixotoleonardo
Sorry, something went wrong.
No branches or pull requests
Affected URL(s)
https://nodejs.org/dist/latest-v20.x/docs/api/buffer.html#static-method-bufferallocunsafesize
Description of the problem
The documentation has a incorrect information about the logic to pre-allocate an internal Buffer.
In the documentation has:
... only when size is less than or equal to Buffer.poolSize >> 1 (floor of Buffer.poolSize divided by two).
However, in the code is:
node/lib/buffer.js
Line 442 in bb2dd0e
The text was updated successfully, but these errors were encountered: