Re:Node Streams: How do they work?
by tantalor on Wednesday April 18, 2012 @08:21AM
(#3857565)
Source please? The docs say a Buffer is "outside the V8 heap".
[ Parent
| on HN ]
Yes, the chunk of memory is managed by node, but each Buffer instance is linked with a slice of the heap through `v8::Object->SetIndexedPropertiesToExternalArrayData()`, the same way a JS `Uint8Array` would.
Here's the relevant link: https://github.com/joyent/node/blob/master/src/node_buffer.c....