-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
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
doc: clarify length
param in buffer.write
#32119
Closed
HarshithaKP
wants to merge
6
commits into
nodejs:master
from
HarshithaKP:clarify_buffer.write_length
Closed
doc: clarify length
param in buffer.write
#32119
HarshithaKP
wants to merge
6
commits into
nodejs:master
from
HarshithaKP:clarify_buffer.write_length
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodejs-github-bot
added
buffer
Issues and PRs related to the buffer subsystem.
doc
Issues and PRs related to the documentations.
labels
Mar 6, 2020
HarshithaKP
added a commit
to HarshithaKP/node
that referenced
this pull request
Mar 6, 2020
Make sure longer strings are written up to the buffer end Refs: nodejs#32119
4 tasks
BridgeAR
reviewed
Mar 9, 2020
jasnell
reviewed
Mar 10, 2020
jasnell
approved these changes
Mar 11, 2020
addaleax
pushed a commit
that referenced
this pull request
Mar 12, 2020
Make sure longer strings are written up to the buffer end Refs: #32119 PR-URL: #32123 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@HarshithaKP There are conflicts here, can you rebase against master? |
`buffer.write` documentation has an incaccuracy w.r.t the `length` parameter: It says default number of bytes written is `buf.length - offset`. Change it to: If the buffer has sufficient space from the offset, the string is written upto `length`. If the buffer is short in space, only `buf.length - offset` bytes are written. Refs : nodejs#32104 (comment)
HarshithaKP
force-pushed
the
clarify_buffer.write_length
branch
from
March 13, 2020 10:34
73ae863
to
7841713
Compare
@addaleax, thanks. Rebased it. PTAL. |
addaleax
reviewed
Mar 13, 2020
BridgeAR
pushed a commit
that referenced
this pull request
Mar 17, 2020
Make sure longer strings are written up to the buffer end Refs: #32119 PR-URL: #32123 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins
pushed a commit
that referenced
this pull request
Mar 24, 2020
Make sure longer strings are written up to the buffer end Refs: #32119 PR-URL: #32123 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
addaleax
reviewed
Mar 29, 2020
addaleax
reviewed
Mar 30, 2020
addaleax
approved these changes
Mar 30, 2020
addaleax
pushed a commit
that referenced
this pull request
Apr 5, 2020
`buffer.write` documentation has an incaccuracy w.r.t the `length` parameter: It says default number of bytes written is `buf.length - offset`. Change it to: If the buffer has sufficient space from the offset, the string is written upto `length`. If the buffer is short in space, only `buf.length - offset` bytes are written. Refs: #32104 (comment) PR-URL: #32119 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Landed in d03d9a0 |
BethGriggs
pushed a commit
that referenced
this pull request
Apr 7, 2020
`buffer.write` documentation has an incaccuracy w.r.t the `length` parameter: It says default number of bytes written is `buf.length - offset`. Change it to: If the buffer has sufficient space from the offset, the string is written upto `length`. If the buffer is short in space, only `buf.length - offset` bytes are written. Refs: #32104 (comment) PR-URL: #32119 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
targos
pushed a commit
that referenced
this pull request
Apr 12, 2020
`buffer.write` documentation has an incaccuracy w.r.t the `length` parameter: It says default number of bytes written is `buf.length - offset`. Change it to: If the buffer has sufficient space from the offset, the string is written upto `length`. If the buffer is short in space, only `buf.length - offset` bytes are written. Refs: #32104 (comment) PR-URL: #32119 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
targos
pushed a commit
that referenced
this pull request
Apr 22, 2020
Make sure longer strings are written up to the buffer end Refs: #32119 PR-URL: #32123 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
targos
pushed a commit
that referenced
this pull request
Apr 22, 2020
`buffer.write` documentation has an incaccuracy w.r.t the `length` parameter: It says default number of bytes written is `buf.length - offset`. Change it to: If the buffer has sufficient space from the offset, the string is written upto `length`. If the buffer is short in space, only `buf.length - offset` bytes are written. Refs: #32104 (comment) PR-URL: #32119 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
buffer.write
documentation has an incaccuracy w.r.t thelength
parameter:It says default number of bytes written is
buf.length - offset
. Change it to:If the buffer has sufficient space from the offset, the string is written upto
length
.If the buffer is short in space, only
buf.length - offset
bytes are written.proof:
Refs : #32104 (comment)
Thanks to @addaleax for her suggestion in the above comment, that lead to this finding.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes