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

AlignedStruct support #9

Open
waszil opened this issue Feb 4, 2022 · 2 comments
Open

AlignedStruct support #9

waszil opened this issue Feb 4, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@waszil
Copy link

waszil commented Feb 4, 2022

Hi! Great package!
I use AlignedStruct from construct, is there a way to wrap it by DataclassStruct?
Thanks!

@timrid
Copy link
Owner

timrid commented Feb 5, 2022

Yes, this should also be possible in principle. But I have not implemented that yet. I put it on my TODO list, but it will take some time until I will implement it...

As a workaround you can declare each field as Aligned. AlignedStruct does nothing else, but automated.

@timrid timrid added the enhancement New feature or request label Feb 5, 2022
@waszil
Copy link
Author

waszil commented Feb 7, 2022

You're right, using Aligned for each field works just fine. Thanks!

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

2 participants