|
node-addon-layer
C API For writing Node modules
|
Functions | |
| shim_val_t * | shim_external_new (shim_ctx_t *ctx, void *data) |
| void * | shim_external_value (shim_ctx_t *ctx, shim_val_t *val) |
Methods for externals
| shim_val_t* shim_external_new | ( | shim_ctx_t * | ctx, |
| void * | data | ||
| ) |
Create a new external
| ctx | Currently executing context |
| data | The external data to wrap |
This is an object that is safe to pass to and from JavaScript.
| void* shim_external_value | ( | shim_ctx_t * | ctx, |
| shim_val_t * | obj | ||
| ) |
Get the underlying memory for the external
| ctx | Currently executing context |
| obj | The given external |
1.8.4