internal static ActivityData Restore(TypeDesc typeDesc, SaveInfo info, ref ByteStreamReader bsr) { uint len = bsr.ReadUInt(); return((len & 0xFFFF0000) != ActivityFileTag ? new ActivityData(typeDesc, (int)len) : new ActivityData(typeDesc, bsr.ReadStringOfLength(len & 0xFFFF))); }