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

Support RIFF structures with variable structs #18

Open
200sc opened this issue Jul 14, 2017 · 1 comment
Open

Support RIFF structures with variable structs #18

200sc opened this issue Jul 14, 2017 · 1 comment
Labels

Comments

@200sc
Copy link
Owner

200sc commented Jul 14, 2017

We need to be able to recognize when a field in a RIFF structure is supposed to be the length for a different field in the same RIFF structure.

@200sc 200sc added the bug label Jul 16, 2017
@200sc
Copy link
Owner Author

200sc commented Jul 20, 2017

This would probably need to happen through a new struct tag like "riffSize: $otherField", or maybe you'd just know it's the size of the next field (as that's almost always the case anyway).

Alternatively, the field themselves would say "riffSize: $sizeTag" and you wouldn't need to store those size fields on the structs in the first place, but that would only work if the individual fields are already tagged in the RIFF, which isn't often true

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

No branches or pull requests

1 participant