API to get length of array cdata

  • From: Cosmin Apreutesei <cosmin.apreutesei@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 12 May 2012 18:24:06 +0300

Hi,

Is it possible to have a function to get the length of an array cdata
(VLA or not)? Right now I have a function that returns sizeof(cdata) /
sizeof(elem_ctype) but I have to pass it the element's ctype. #cdata
would be swell.

Cosmin.

Other related posts: