C#C
C#4y ago
androidui

serializer runtime type checking?

when writing a Serializer and Deserializer, how would i go about ensuring stuff written and read in the correct order and with expected read sizes and positions (eg in case serializing misses a field that is otherwise written)

eg
ser() {
   write();
   write();
   write();
   write();
   write();
}

des() {
   read();
   read();
   read();
   read();
   // missing one here
}
Was this page helpful?