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

Introduce a TLV::Tag for TLV tags. #10162

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

bzbarsky-apple
Copy link
Contributor

We can work on converting various code to using that instead of
raw uint64_t, and then make it a class to get some type-safety.

Problem

We use uint64_t for tlv tags, so it's easy to pass in an integer when a tag is meant.

Change overview

Introduce a named type for tags, so we can start switching to that and eventually get to type-safety.

Testing

No behavior changes.

We can work on converting various code to using that instead of
raw uint64_t, and then make it a class to get some type-safety.
Copy link
Contributor

@yunhanw-google yunhanw-google left a comment

Choose a reason for hiding this comment

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

LGTM

@bzbarsky-apple
Copy link
Contributor Author

@tcarmelveilleux tcarmelveilleux merged commit 7d79246 into project-chip:master Oct 4, 2021
@bzbarsky-apple bzbarsky-apple deleted the tlv-tag-type branch October 4, 2021 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants