tonumber for char* data, is it possible?`

  • From: Vladimir Dronnikov <dronnikov@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 16 Nov 2013 17:02:00 +0400

Hello!

Need a fast function to convert a FFI char* data to number.

src/lj_strscan.c already contains ready-to-use function:
`StrScanFmt lj_strscan_scan(const uint8_t *p, TValue *o, uint32_t opt)`

Wonder is it exposed to userspace, or how it can be done?

TIA,
--Vladimir

Other related posts: