December 2014
Intermediate to advanced
424 pages
13h 26m
English
This chapter covers
JavaScript has historically had subpar binary support. Typically, parsing binary data would involve various tricks with strings to extract the data you want. Not having a good mechanism to work with raw memory in JavaScript was one of the problems Node core developers had to tackle when the project started getting traction. This was mostly for performance reasons. All of the raw memory accumulated in the Buffer data type.
Buffers are raw allocations of the heap, exposed to JavaScript in an array-like manner. They’re exposed globally ...
Read now
Unlock full access