Uh oh!
There was an error while loading. Please reload this page.
doc: fix doc for Buffer.readInt32LE() - #5890
Conversation
Update example and signature for readInt32LE method.
jasnell
commented
Mar 24, 2016
LGTM |
cjihrig
commented
Mar 24, 2016
LGTM. Do the other similar methods have the same problem? If so, might as well fix those too. |
ghaiklor
commented
Mar 24, 2016
ghaiklor
commented
Mar 24, 2016
Ouch, mistake was not in offsets. They are correct. We have I'll update PR with correct version now. |
cjihrig
commented
Mar 24, 2016
You're right. Thank you. |
bendiy
commented
Mar 25, 2016
@cjihrig I ran most of the other |
cjihrig
commented
Mar 25, 2016
@bendiy thanks for investigating. |
Update example of readInt32LE method. buf.readInt32LE(1) is supposed to throw an error as it has only four elements and it tries to read 32 bits from three bytes. Fixes: #5889 PR-URL: #5890 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
thefourtheye
commented
Mar 27, 2016
LGTM and landed in 1213535. I squashed the commits and reworded the commit log a bit. |
Update example of readInt32LE method. buf.readInt32LE(1) is supposed to throw an error as it has only four elements and it tries to read 32 bits from three bytes. Fixes: #5889 PR-URL: #5890 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
MylesBorins
commented
Mar 30, 2016
should this be backported to v4? |
Update example of readInt32LE method. buf.readInt32LE(1) is supposed to throw an error as it has only four elements and it tries to read 32 bits from three bytes. Fixes: #5889 PR-URL: #5890 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
thefourtheye
commented
Apr 2, 2016
@thealphanerd Yes, this should be backported to 4.x |
Update example of readInt32LE method. buf.readInt32LE(1) is supposed to throw an error as it has only four elements and it tries to read 32 bits from three bytes. Fixes: #5889 PR-URL: #5890 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Pull Request check-list
existing APIs, or introduces new ones)?
Affected core subsystem(s)
doc
Description of change
Update example and signature for readInt32LE method. It fixes#5889.