Closed jcupitt closed 7 years ago
The readPointer example was a bit mixed up: it wasn't really doing anything. I changed it to be what (I think) was intended. I now see:
readPointer
var buf = new Buffer('hello world'); undefined var pointer = ref.alloc('pointer', buf); undefined var buf2 = ref.readPointer(pointer, 0, buf.length); undefined buf2.toString() 'hello world'
Yes, good catch! Thank you @jcupitt.
The
readPointer
example was a bit mixed up: it wasn't really doing anything. I changed it to be what (I think) was intended. I now see: