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

Union: support external discriminator #7

Closed
pabigot opened this issue Nov 18, 2015 · 0 comments
Closed

Union: support external discriminator #7

pabigot opened this issue Nov 18, 2015 · 0 comments

Comments

@pabigot
Copy link
Owner

pabigot commented Nov 18, 2015

The discriminator for unions may be assumed to be integral, but need not be present within the union structure itself. Provide a way to obtain it from a layout element elsewhere in the buffer or by an oracle.

pabigot added a commit that referenced this issue Nov 18, 2015
Introduce new class hierarchy that supports the encode and decode
operations for a union discriminator.  Refactor the existing
prefix-layout approach for variant encoding to use this hierarchy.

Provides the basis of a solution to issue #7.
pabigot added a commit that referenced this issue Nov 18, 2015
@pabigot pabigot closed this as completed Nov 18, 2015
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