node-addon-layer
C API For writing Node modules
|
Functions | |
shim_val_t * | shim_number_new (shim_ctx_t *ctx, double d) |
double | shim_number_value (shim_val_t *obj) |
shim_val_t * | shim_integer_new (shim_ctx_t *ctx, int32_t i) |
shim_val_t * | shim_integer_uint (shim_ctx_t *ctx, uint32_t i) |
int64_t | shim_integer_value (shim_val_t *val) |
int32_t | shim_integer_int32_value (shim_val_t *val) |
uint32_t | shim_integer_uint32_value (shim_val_t *val) |
Methods for numbers
int32_t shim_integer_int32_value | ( | shim_val_t * | val) |
Get the int32_t value
val | The given integer |
shim_val_t* shim_integer_new | ( | shim_ctx_t * | ctx, |
int32_t | i | ||
) |
Create a new Integer
ctx | Current executing context |
i | The value of the new integer |
shim_val_t* shim_integer_uint | ( | shim_ctx_t * | ctx, |
uint32_t | i | ||
) |
Create a new Integer from a uint32_t
ctx | Current executing context |
i | The value of the new integer |
uint32_t shim_integer_uint32_value | ( | shim_val_t * | val) |
Get the uint32_t value
val | The given integer |
int64_t shim_integer_value | ( | shim_val_t * | val) |
Get the value of an integer
val | The given integer |
shim_val_t* shim_number_new | ( | shim_ctx_t * | ctx, |
double | d | ||
) |
Create a new Number from a value
ctx | Current executing context |
d | The value of the new number |
double shim_number_value | ( | shim_val_t * | val) |
Get the value of a number
val | The given number |