Created
March 4, 2012 10:42
-
-
Save nulltask/1972347 to your computer and use it in GitHub Desktop.
Buffer vs. ArrayBuffer in Node v0.6.12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > var buffer = new Buffer(0x0F); | |
| undefined | |
| > buffer | |
| <Buffer 7d 2c 0a 20 20 47 4c 4f 42 41 4c 3a 20 5b 43> | |
| > | |
| undefined | |
| > var arrayBuffer = new ArrayBuffer(0x0F); | |
| undefined | |
| > arrayBuffer | |
| { '0': 0, | |
| '1': 0, | |
| '2': 0, | |
| '3': 0, | |
| '4': 0, | |
| '5': 0, | |
| '6': 0, | |
| '7': 0, | |
| '8': 0, | |
| '9': 0, | |
| '10': 0, | |
| '11': 0, | |
| '12': 0, | |
| '13': 0, | |
| '14': 0, | |
| byteLength: 15 } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Blog article (in Japanese):
http://null.ly/post/18721753351/node-v0-6-12-buffer-arraybuffer