Comparing version 0.3.1 to 0.3.2
0.3.2 / 2014-06-19 | ||
================== | ||
* src: fix comment typo | ||
* src: define our own `kMaxLength` constant | ||
0.3.1 / 2014-06-09 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -609,4 +609,4 @@ | ||
/** | ||
* `ref()` acceps a Buffer instance and returns a new Buffer | ||
* instance that is "pointer" sized and has it's data pointing to the given | ||
* `ref()` accepts a Buffer instance and returns a new Buffer | ||
* instance that is "pointer" sized and has its data pointing to the given | ||
* Buffer instance. Essentially the created Buffer is a "reference" to the | ||
@@ -631,4 +631,4 @@ * original pointer, equivalent to the following C code: | ||
/** | ||
* Acceps a Buffer instance and attempts to "dereference" it. | ||
* That is, first it checks the "indirection" count of _buffer_'s "type", and if | ||
* Accepts a Buffer instance and attempts to "dereference" it. | ||
* That is, first it checks the `indirection` count of _buffer_'s "type", and if | ||
* it's greater than __1__ then it merely returns another Buffer, but with one | ||
@@ -635,0 +635,0 @@ * level less `indirection`. |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)", | ||
@@ -23,0 +23,0 @@ "repository": { |
@@ -33,6 +33,7 @@ | ||
assert(strBuf.length > 10000); | ||
var str = strBuf.toString('ucs2'); | ||
// the data in `utf16le.bin` should be a JSON parsable string | ||
JSON.parse(strBuf.toString('utf16le')); | ||
assert(JSON.parse(str)); | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
427541
2876