Hour 19. The Buffer Module

What You’ll Learn in This Hour:

• What binary data is

• What character encoding is

• How to work with binary data

• How to work with buffers

A Primer on Binary Data

To understand the Buffer module, you need to understand binary data. If you already have a good handle on this, you can skip this section. If not, read on! A binary digit can be one of two values: 0 or 1. This is also known as a bit (short for binary digit), and this is the atomic unit of data in computer systems. The values 0 and 1 are the simplest way of representing information as the values can only ever be one of two things—0 or 1. This can also be interpreted as true or false and on or off. While this may be considered simple and trivial, using more ...

Get Sams Teach Yourself Node.js in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.