c_src/hyper_carray.c
/*
 * Creates or opens the hyper_carray resource _type_.
 * Registers dtor to be called on garbage collection of hyper_carrays.
 * Please see http://www.erlang.org/doc/man/erl_nif.html.
 */
Creates or opens the hyper_carray resource _type_.
Registers dtor to be called on garbage collection of hyper_carrays.
Creates or opens the hyper_carray resource _type_ . Registers dtor to be called on garbage collection of hyper_carrays .
static int load(ErlNifEnv * env, void **priv_data, ERL_NIF_TERM load_info)
{
	carray_resource =
	    enif_open_resource_type(env, NULL, "hyper_carray", &dtor,
				    ERL_NIF_RT_CREATE |
				    ERL_NIF_RT_TAKEOVER, 0);
	return 0;
}
static int load ( ErlNifEnv * env , void * * priv_data , ERL_NIF_TERM load_info ) { carray_resource = enif_open_resource_type ( env , NULL , " " , & dtor , ERL_NIF_RT_CREATE | ERL_NIF_RT_TAKEOVER , 0 ) ; return 0 ; }
Creates or opens the hyper_carray resource _type_.
Creates or opens the hyper_carray resource _type_ .