Support to read from c array subscription and write to c array
subscription, in which c array is the result of ffi.new call.
Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx
---
include/ktap_ffi.h | 14 +++-
runtime/ffi/cdata.c | 223 +++++++++++++++++++++++++++++++++++++++++++++++--
runtime/ffi/ffi_call.c | 93 +++------------------
runtime/kp_vm.c | 11 +++
test/ffi/ffi_test.kp | 8 +-
...
↧