Title: Buffer integer writing functions return (offset + number bytes written) instead of (number bytes written) · Issue #5846 · nodejs/node · GitHub
Open Graph Title: Buffer integer writing functions return (offset + number bytes written) instead of (number bytes written) · Issue #5846 · nodejs/node
X Title: Buffer integer writing functions return (offset + number bytes written) instead of (number bytes written) · Issue #5846 · nodejs/node
Description: Version: 5.9.0 Platform: Mac OS X 10.11.3 64-bit (Darwin Kernel Version 15.3.0) When using the convenience methods to write integers to Buffer objects (like for example buf.writeUInt32LE(value, offset[, noAssert])), the value returned is...
Open Graph Description: Version: 5.9.0 Platform: Mac OS X 10.11.3 64-bit (Darwin Kernel Version 15.3.0) When using the convenience methods to write integers to Buffer objects (like for example buf.writeUInt32LE(value, off...
X Description: Version: 5.9.0 Platform: Mac OS X 10.11.3 64-bit (Darwin Kernel Version 15.3.0) When using the convenience methods to write integers to Buffer objects (like for example buf.writeUInt32LE(value, off...
Opengraph URL: https://github.com/nodejs/node/issues/5846
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Buffer integer writing functions return (offset + number bytes written) instead of (number bytes written)","articleBody":"- **Version**: 5.9.0\n- **Platform**: Mac OS X 10.11.3 64-bit (Darwin Kernel Version 15.3.0)\n\nWhen using the convenience methods to write integers to Buffer objects (like for example [buf.writeUInt32LE(value, offset[, noAssert])](https://nodejs.org/api/buffer.html#buffer_buf_writeuint32le_value_offset_noassert)), the value returned is (offset + number bytes written) instead of (number bytes written) as is indicated in the [documentation](https://nodejs.org/api/buffer.html#buffer_buf_writeuint32le_value_offset_noassert).\n\nTest case :\n\n```\nvar buf = new Buffer(100);\nvar value = 1;\nvar offset = 20;\nconsole.log(buf.writeUInt32LE(value, offset)); //outputs 24 instead of 4\n```\n\nThis issue seems to appear with all integer writing functions.\n","author":{"url":"https://github.com/quentinadam","@type":"Person","name":"quentinadam"},"datePublished":"2016-03-22T17:49:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5846/node/issues/5846"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:14427cb5-97e1-b60e-de79-df976920561c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E78:28E47:138CCC9:1A7C655:6A4F162A |
| html-safe-nonce | e0625aed8b28dd1d163a7fdf16ed32939129b9430028fc0993fe66a5d1f70b4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTc4OjI4RTQ3OjEzOENDQzk6MUE3QzY1NTo2QTRGMTYyQSIsInZpc2l0b3JfaWQiOiI3NjU1OTk0NDE5MTI0ODM1ODgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e79d258b949a5c36f1edff87387c31eaaa1a0a4fd01dbd8b4f247fae45592fa1 |
| hovercard-subject-tag | issue:142727084 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/5846/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06eda5746b41291a587fdb7014b4dc9f1a927f1ca151931b9e01fff40bfe52d3/nodejs/node/issues/5846 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06eda5746b41291a587fdb7014b4dc9f1a927f1ca151931b9e01fff40bfe52d3/nodejs/node/issues/5846 |
| og:image:alt | Version: 5.9.0 Platform: Mac OS X 10.11.3 64-bit (Darwin Kernel Version 15.3.0) When using the convenience methods to write integers to Buffer objects (like for example buf.writeUInt32LE(value, off... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | quentinadam |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width