The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Changes to Buffers in Node.js 6

Changes to Buffers in Node.js 6

3:14
In versions of nodejs prior to 6, how you created a buffer and what you did with it produced different behaviors. This made it possible to introduce security or reliability issues into your code. At the time however, JavaScript had no means of reading or manipulating streams of binary data. Now that TypedArray has been added in ES6, the Buffer class implements the Uint8Array API in a manner that better suits node.js use cases. In this lesson, you will learn what that means to your existing code and how to update your code to use the new Buffer APIs.
Watch this lesson now
Avatar
egghead.io

In versions of nodejs prior to 6, how you created a buffer and what you did with it produced different behaviors. This made it possible to introduce security or reliability issues into your code. At the time however, JavaScript had no means of reading or manipulating streams of binary data. Now that TypedArray has been added in ES6, the Buffer class implements the Uint8Array API in a manner that better suits node.js use cases.
In this lesson, you will learn what that means to your existing code and how to update your code to use the new Buffer APIs.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?