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

First PR for initial development #1

Merged
merged 3 commits into from
Nov 14, 2022
Merged

First PR for initial development #1

merged 3 commits into from
Nov 14, 2022

Conversation

hhhjort
Copy link
Collaborator

@hhhjort hhhjort commented Oct 31, 2022

No description provided.

parse_test.go Outdated
SectionStrings: []string{"DBABMA", "CPXxRfAPXxRfAAfKABENB-CgAAAAAAAAAAYgAAAAAAAA"},
Sectiontypes: []constants.SectionID{3, 2},
Version: 1,
// SectionStrings: []string{"DBABMA", "CPXxRfAPXxRfAAfKABENB-CgAAAAAAAAAAYgAAAAAAAA"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the SectionStrings here no longer needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already removed, just need to push. :)

parse.go Outdated
decoded = decoded[:n:n]

bs := util.NewBitStream(decoded)
if bs.Len() < 3 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the check here use a constant in place of the 3?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

}
bs.SetPosition(6)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the SetPosition either use a constant or maybe just a comment to explain the position change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a bad idea to add a comment.

@@ -12,3 +12,5 @@ const (
SectionUSPUT SectionID = 11
SectionUSPCT SectionID = 12
)

const SectionGPPByte byte = 'D'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if here or where it's used is better, but could you add a comment explaining how this is used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this and added comments.

@hhhjort hhhjort merged commit 1e0b054 into main Nov 14, 2022
@SyntaxNode SyntaxNode deleted the development branch January 22, 2024 21:56
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

Successfully merging this pull request may close these issues.

2 participants