node-addon-layer
C API For writing Node modules
|
Functions | |
shim_val_t * | shim_array_new (shim_ctx_t *ctx, size_t len) |
size_t | shim_array_length (shim_val_t *arr) |
shim_bool_t | shim_array_get (shim_ctx_t *ctx, shim_val_t *arr, int32_t idx, shim_val_t *rval) |
shim_bool_t | shim_array_set (shim_ctx_t *ctx, shim_val_t *arr, int32_t idx, shim_val_t *val) |
Methods for Arrays
shim_bool_t shim_array_get | ( | shim_ctx_t * | ctx, |
shim_val_t * | arr, | ||
int32_t | idx, | ||
shim_val_t * | rval | ||
) |
Get the value at the given index
ctx | Current executing context |
arr | Given array |
idx | Index of element |
rval | Actual return value |
size_t shim_array_length | ( | shim_val_t * | arr) |
Get the length of the given array
arr | Given array |
shim_val_t* shim_array_new | ( | shim_ctx_t * | ctx, |
size_t | len | ||
) |
Create a new array of given length
ctx | Current executing context |
len | Length of array to be created |
shim_bool_t shim_array_set | ( | shim_ctx_t * | ctx, |
shim_val_t * | arr, | ||
int32_t | idx, | ||
shim_val_t * | val | ||
) |
Set the value at the given index
ctx | Current executing context |
arr | Given array |
idx | Index of element |
val | Value to be set |