4 ms·
Source please? The docs say a Buffer is "outside the V8 heap".
by tantalor 15y ago
Source please? The docs say a Buffer is "outside the V8 heap".
- mjor 15y agoYes, 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.cc#L707 https://github.com/joyent/node/blob/master/src/node_buffer.c....