Vedrit
✅ Questions about casting
I used dictionaries mainly for organization. The keys and values are read from the dictionary
I don't know the details behind the deserialization, but to my understanding it's a byte array. You iterate through, telling it to cast the bytes as a specific type, then move to the next index.
The counter is so that when I'm iterating through, I know exactly how many are of which type, and since they were written in groups, I can read them in groups.
I guess, long story short, if I serialize an int, a string, and a float to a byte array, do I have to know the correct type when casting?
11 replies