node-ffi-rs
node-ffi-rs copied to clipboard
Ideas/ToDo - More data types as parameters, return value, and inside struct
I'd like to see the following things get implemented. I can help if I get some guidance.
Data Types (highest priority top to bottom):
-
byte
-
float
-
int
-
long
-
short
-
byte array
-
float array
-
int array
-
long array
-
short array
Struct data types:
Struct Arrays
It would be great to have arrays inside structs as well.
The latest version of struct supports double, i32array, doubleArray, stringArray, please refer to the latest readme for more details. retTypeLen is deprecated in the latest version, and arrayConstructor is added to specify the legal length of the returned array.
the correct d.ts type will be refined in the next release
Great. Thanks.
support long type aka i64 in 1.0.32
Great. Thanks.
support byte
, byteArray
aka u8
, u8Array
in 1.0.33
Is there any plan to add DataType.ExternalArray
for array of pointer? @zhangyuang