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

Consider an option to specify the total length of Void elements (header and payload) #10

Open
StokesMIDE opened this issue Nov 14, 2018 · 0 comments
Labels
Encoding Related to the creation of EBML data enhancement New feature or request

Comments

@StokesMIDE
Copy link
Member

The Void element is intended largely as padding. As such, it would be useful to be able to specify a total size for the element, not just the size of its payload. For example, a Void with a specified length of 100 would write 0xEB+0xE2+(0xFF * 98). The only trick is calculating the length of the length, but that could be made easier by writing longer lengths than required (e.g. 0x10000062 instead of 0xE2); since this is padding, wasting space isn't really an issue.

@StokesMIDE StokesMIDE added enhancement New feature or request Encoding Related to the creation of EBML data labels Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Encoding Related to the creation of EBML data enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant