Skip to content

GrainSerializer base types #7597

Answered by ReubenBond
jbockle asked this question in Q&A
Feb 21, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

They do not share id ranges, so it's entirely fine to start from zero in each individual type (in fact, it's preferable because smaller numbers take less space).

If you have a type like A : B : C, the way it's encoded on the wire is roughly this:
<Start> ... C fields ... <EndBase> ... B fields .... <EndBase> ... A fields ... <End>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jbockle
Comment options

Answer selected by jbockle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants