The serialization library's structure size list is currently populated at runtime via the deserializer. This means that only structures that have been deserialized have size information, which is unhelpful if no instances have occurred yet and the size of the structure is need for, say, calculating the size of an array. I've already encountered this problem when implementing bundle handling, for which I just hardcoded the sizes.
It should be possible to generate these at compile time without having to manually add them to a list. Also, the list will have to have the platform added as part of the key to correctly support platform-specific structures.
The serialization library's structure size list is currently populated at runtime via the deserializer. This means that only structures that have been deserialized have size information, which is unhelpful if no instances have occurred yet and the size of the structure is need for, say, calculating the size of an array. I've already encountered this problem when implementing bundle handling, for which I just hardcoded the sizes.
It should be possible to generate these at compile time without having to manually add them to a list. Also, the list will have to have the platform added as part of the key to correctly support platform-specific structures.