Skip to content

Buffers

Melissa Stock edited this page May 16, 2019 · 1 revision

Buffer in Node.js

  • The Buffer class was introduced as part of the Node.js API to make it possible to manipulate or interact with streams of binary data.
  • Popular character sets: Unicode and ASCII. These are defined rules of what number represents each character.
  • Character Encoding: defines how many bits are used to represent the number. Ex: UTF-8
  • Stream: a sequence of data being moved from one point to the other over time.
  • Buffer: The "waiting area" where data is kept while the computer waits for all the data to arrive

Byte Ordering

  • Big-Endian Byte Ordering: Bytes are stored in order from left to right
  • Little-Endian Byte Ordering: Bytes are stored in reverse order from right to left

Clone this wiki locally