1.0.6 • Published 5 years ago

@inithink/node-pointer v1.0.6

Weekly downloads
3
License
ISC
Repository
-
Last release
5 years ago

node-pointer

Access C++ pointer from node.js code

##Example

readAddress

const assert = require('assert');
const {readAddress} = require('@inithink/node-pointer');
// By using ref-napi, we can get memory address of a Buffer instance
require('ref-napi');

const buf = Buffer.alloc(4);
buf.writeUInt64LE(0x11223344, 0);

let buffer = readAddress(buf.address(), 4);
assert.strictEqual(0x11223344, buffer.readUInt32LE(0));
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago