Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Conversation

buschtoens
Copy link

This makes these write methods chainable.

var buf = new Buffer(4);
buf
  .writeUInt8(0xFF, 0)
  .writeUInt16BE(0xAAAA, 1)
  .writeUInt8BE(0xBB, 3);

console.log(buf); // <Buffer FF AA AA BB>

Related: #3597 #5586 #5611
This PR is part of this idea.

This makes these write methods chainable.
```js
var buf = new Buffer(4);
buf
  .writeUInt8(0xFF, 0)
  .writeUInt16BE(0xAAAA, 1)
  .writeUInt8BE(0xBB, 3);

console.log(buf); // <Buffer FF AA AA BB>
```
@trevnorris
Copy link

refer to #5614 (comment)

@trevnorris trevnorris closed this May 31, 2013
@buschtoens
Copy link
Author

Does this really cause such a performance bottleneck? Or is this closed for stability's sake?

@trevnorris
Copy link

This one is closed for the same reason as #5586 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants