Closed DevSide closed 7 years ago
const intPtr = ref.refType(ref.types.int); const lib = ffi.Library('myLib', { 'get': [intPtr] }) const myIntPtr = lib.get(); myIntPtr.ref(); // i get the buffer address myIntPtr.deref() // nothing
I'm trying to get the value behind the pointer, how can i do this ?
I'm trying to get the value behind the pointer, how can i do this ?