Is casting to this struct enough?
typedef struct {
jl_array_t *chunks;
int64_t len;
jl_value_t *dims;
} jl_bit_array_t;
Like, I tried this
typedef struct {
jl_array_t *chunks;
int64_t len;
jl_value_t *dims;
} jl_bit_array_t;
jl_bit_array_t *ret = (jl_bit_array_t*) jl_eval_string(".!([true false; true true; false false])");
int64_t len = ret->len;
uint64_t *zData = (uint64_t*) jl_array_data(ret->chunks);
jl_value_t *dimensions = ret->dims;
printf("dims: %s type \n",jl_typeof_str(ret->dims));
len
and chunks
are correctly aligned and the data is correct, but dims
, whatever I do with it, it results in segfault.
In the above code also, jl_typeof_str
resulted in segfault.