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

pogs: add unknown field support #91

Open
zombiezen opened this issue Aug 12, 2017 · 0 comments
Open

pogs: add unknown field support #91

zombiezen opened this issue Aug 12, 2017 · 0 comments
Milestone

Comments

@zombiezen
Copy link
Contributor

pogs structs should be able to insert and extract data from a struct that it does not have an explicit field for (whether that be from an omitted struct field or receiving a newer copy of the struct). This would enable read-modify-write scenarios while still preserving unknown fields.

Based on a conversation with Kenton, the way this ought to work is to allow a field that has a capnp.Struct pointer back to the original data, and then on Insert, read from it to scoop up any unknown fields.

@zombiezen zombiezen added this to the 3.0 milestone Aug 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant