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 to introduce new zserio type for offsets #643

Open
mikir opened this issue Jun 21, 2024 · 0 comments
Open

Consider to introduce new zserio type for offsets #643

mikir opened this issue Jun 21, 2024 · 0 comments
Labels
core Zserio core module enhancement New feature or request
Milestone

Comments

@mikir
Copy link
Contributor

mikir commented Jun 21, 2024

It would be more convenient for users, if Zserio will support directly the offset type:

struct Schema
{
    offset32 myOffset;
    uint8 someValue;
    varsize someVariableSizedValue;
myOffset:
   string stringValue;
};

The following types should be supported:

  • offset16 with the underlying type uint16
  • offset32 with the underlying type uint32
  • offset64 with the underlying type uint64

However, the old syntax should be still valid (uint16 myOffset) because of the backward compatibility.

For more info, please have a look to the issue #640.

@mikir mikir added enhancement New feature or request core Zserio core module labels Jun 21, 2024
@mikir mikir added this to the 2.15 milestone Jun 21, 2024
@mikir mikir modified the milestones: 2.15, Backlog Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Zserio core module enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant