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

Q: How to work with heterogeneous data #4

Open
crlf0710 opened this issue Mar 31, 2024 · 0 comments
Open

Q: How to work with heterogeneous data #4

crlf0710 opened this issue Mar 31, 2024 · 0 comments

Comments

@crlf0710
Copy link

Sometimes enums might suffice

Accessing shared fields from different variants

Providing shared behavior - with delegation

Accessing field and behavior provided by a single variant and a subset of variants

Using boxed trait objects

to save wasted bytes

to store downstream defined variants

dyn*, the even more convenient future

Working with external explicit definitions from ffi

Prefix struct defintions: a group of types that has the same prefix sequence of fields starting at offset 0

Working with "packed" external explicit definitions from ffi

A series of "records" stored continuously within a data buffer.

Validity checking on the fly when the total blob size is huge

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