Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualNypyren

Posted 04 March 2013 - 10:53 PM

The solution I prefer is to store objects in the format:

{size, id, version, key1, a, key2, b, key3, c ... }

How do you handle the case where an unknown key occurs? It seems like you have to abandon the remainder of the struct at that point because you don't have info to skip individual fields.

Do your keys include some bits that identify the field's size?

#1Nypyren

Posted 04 March 2013 - 10:50 PM

The solution I prefer is to store objects in the format:

{size, id, version, key1, a, key2, b, key3, c ... }

How do you handle the case where an unknown key occurs? It seems like you have to abandon the remainder of the struct at that point because you don't have info to skip individual fields.

PARTNERS