Permalink
Browse files

Buffer is now global

  • Loading branch information...
1 parent 6d4b37c commit afe1e88957e4c845a0fce5c0cb79faad6f476ea5 @tj tj committed Sep 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 chapters/buffers.md
View
@@ -1,7 +1,7 @@
# Buffers
- To handle binary data, node provides us the `Buffer` object. Buffer instances represent memory allocated independently to that of V8's heap. There are several ways to constructor a `Buffer` instance, and many ways you can manipulate it's data.
+ To handle binary data, node provides us with the global `Buffer` object. Buffer instances represent memory allocated independently to that of V8's heap. There are several ways to construct a `Buffer` instance, and many ways you can manipulate it's data.
The simplest way to construct a `Buffer` from a string is to simply pass a string as the first argument. As you can see by the log output, we now have a buffer object containing 5 bytes of data represented in hexadecimal.

0 comments on commit afe1e88

Please sign in to comment.