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

Should ref use custom offset of the referred type? #158

Open
OleksandrKvl opened this issue Jan 11, 2023 · 0 comments
Open

Should ref use custom offset of the referred type? #158

OleksandrKvl opened this issue Jan 11, 2023 · 0 comments

Comments

@OleksandrKvl
Copy link

Documentation says that offset attribute of type/enum/set/composite is used only if it's "a member of a composite type". Is usage of such type via ref considered as "a member of a composite type"? There are 4 cases:

  1. Type has custom offset, ref doesn't.
  2. Both of them have custom offsets.
  3. Type doesn't have custom offset, ref has it. In this case it feels natural that ref's offset should be used.
  4. Neither of them have custom offset. No problem here.

I guess that ref simply should not care about custom offset of the referred type, can someone confirm or correct me please?

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

1 participant