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

CUE + LOOP Labels #2

Open
Stoyvo opened this issue Sep 4, 2019 · 1 comment
Open

CUE + LOOP Labels #2

Stoyvo opened this issue Sep 4, 2019 · 1 comment

Comments

@Stoyvo
Copy link

Stoyvo commented Sep 4, 2019

It would be worth mentioning that CUE and LOOP types have labels at the end of the entries. This mean you do not need to iterate through each byte in the label field to identify the end of the label (Searching for null-terminator). Instead, utilize the data length (same level as header/data type, before data entry), and read the end of the data for X bytes.

For example:
Cues have 12 bytes before the label starts. dataLength-12 is how many bytes to read for the label. A loop has 20 bytes before the label starts (dataLength-20).

@Holzhaus
Copy link
Owner

True. If you want to change some phrasing, feel free to open a pull request.

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

No branches or pull requests

2 participants