Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ideas/ToDo - More data types as parameters, return value, and inside struct #9

Open
aidv opened this issue Oct 18, 2023 · 7 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@aidv
Copy link

aidv commented Oct 18, 2023

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.

@zhangyuang zhangyuang self-assigned this Oct 18, 2023
@zhangyuang zhangyuang added the enhancement New feature or request label Oct 18, 2023
@zhangyuang
Copy link
Owner

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.

@zhangyuang
Copy link
Owner

the correct d.ts type will be refined in the next release

@aidv
Copy link
Author

aidv commented Oct 20, 2023

Great. Thanks.

@zhangyuang
Copy link
Owner

support long type aka i64 in 1.0.32

@aidv
Copy link
Author

aidv commented Jan 2, 2024

Great. Thanks.

@zhangyuang
Copy link
Owner

support byte, byteArray aka u8, u8Array in 1.0.33

@ColourfulBlack
Copy link

Is there any plan to add DataType.ExternalArray for array of pointer? @zhangyuang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants