-
Notifications
You must be signed in to change notification settings - Fork 215
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
short[] causes broken code #59
Comments
That's how "not supported" is implemented. You can generate the entire class and change the parts that read and write your array. What other solution would you recommend? |
I would prefer if the generated code would just work^^ Here is the generated code from my own library:
Currently will be this code generated which won't compile:
|
I agree that the feature is useful, I'm just saying that the best failure is an early failure. Your code would work, I don't know if this plugin can generate a utils class with methods for conversion, though. So you'll have to keep this code in every task. Other than that, you could probably pack two shorts into an int for memory efficiency, but you'll need benchmarks to check if that helps. |
If you talk about memory efficiency keep in mind that every boolean is stored as byte or even as integer. They can been packed much more efficiency. |
I already read in the readme.md that you don't support that type, but the generated code does not compile. If you have some time please fix that.
The text was updated successfully, but these errors were encountered: