c_src/hyper_carray.c
/*
 * Return the total number of bytes allocated for the given hyper_carray.
 * Includes the header's size.
 */
Return the total number of bytes allocated for the given hyper_carray.
Includes the header's size.
Return the total number of bytes allocated for the given hyper_carray . Includes the header ' s size .
static ERL_NIF_TERM bytes(ErlNifEnv * env, int argc,
			  const ERL_NIF_TERM argv[])
{
	carray_ptr arr = NULL;
	HYPER_CARRAY_OR_BADARG(argv[0], arr);
	return enif_make_int(env, HYPER_CARRAY_SIZE + arr->size);
}
static ERL_NIF_TERM bytes ( ErlNifEnv * env , int argc , const ERL_NIF_TERM argv [ ] ) { carray_ptr arr = NULL ; HYPER_CARRAY_OR_BADARG ( argv [ 0 ] , arr ) ; return enif_make_int ( env , HYPER_CARRAY_SIZE + arr -> size ) ; }
Return the total number of bytes allocated for the given hyper_carray.
Return the total number of bytes allocated for the given hyper_carray .