Ejemplo n.º 1
0
        public global::Person2 Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                return(null);
            }


            var __Age__     = default(int?);
            var __Age__b__  = false;
            var __Name__    = default(string);
            var __Name__b__ = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __Age__    = formatterResolver.GetFormatterWithVerify <int?>().Deserialize(ref reader, formatterResolver);
                    __Age__b__ = true;
                    break;

                case 1:
                    __Name__    = reader.ReadString();
                    __Name__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::Person2();

            if (__Age__b__)
            {
                ____result.Age = __Age__;
            }
            if (__Name__b__)
            {
                ____result.Name = __Name__;
            }

            return(____result);
        }
Ejemplo n.º 2
0
        public global::UnityEngine.Vector3 Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                throw new InvalidOperationException("typecode is null, struct not supported");
            }


            var __x__ = default(float);
            var __y__ = default(float);
            var __z__ = default(float);

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __x__ = reader.ReadSingle();
                    break;

                case 1:
                    __y__ = reader.ReadSingle();
                    break;

                case 2:
                    __z__ = reader.ReadSingle();
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::UnityEngine.Vector3(__x__, __y__, __z__);

            ____result.x = __x__;
            ____result.y = __y__;
            ____result.z = __z__;

            return(____result);
        }
Ejemplo n.º 3
0
        public global::SimplePersonMsgpack Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                return(null);
            }


            var __Age__       = default(int);
            var __FirstName__ = default(string);
            var __LastName__  = default(string);

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __Age__ = reader.ReadInt32();
                    break;

                case 1:
                    __FirstName__ = reader.ReadString();
                    break;

                case 2:
                    __LastName__ = reader.ReadString();
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::SimplePersonMsgpack();

            ____result.Age       = __Age__;
            ____result.FirstName = __FirstName__;
            ____result.LastName  = __LastName__;

            return(____result);
        }
        public global::PlatformBenchmarks.JsonMessage Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                throw new InvalidOperationException("typecode is null, struct not supported");
            }


            var __message__    = default(string);
            var __message__b__ = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __message__    = reader.ReadString();
                    __message__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::PlatformBenchmarks.JsonMessage();

            if (__message__b__)
            {
                ____result.message = __message__;
            }

            return(____result);
        }
Ejemplo n.º 5
0
        public global::JigsawData Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                return(null);
            }


            var __M_jon_datas__    = default(global::System.Collections.Generic.List <global::JigsawDataJson>);
            var __M_jon_datas__b__ = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __M_jon_datas__    = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::JigsawDataJson> >().Deserialize(ref reader, formatterResolver);
                    __M_jon_datas__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::JigsawData();

            if (__M_jon_datas__b__)
            {
                ____result.M_jon_datas = __M_jon_datas__;
            }

            return(____result);
        }
Ejemplo n.º 6
0
        public global::IPSWdl.JsonReps.jank Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                throw new InvalidOperationException("typecode is null, struct not supported");
            }


            var __devices__    = default(global::System.Collections.Generic.List <global::IPSWdl.JsonReps.Device>);
            var __devices__b__ = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __devices__    = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::IPSWdl.JsonReps.Device> >().Deserialize(ref reader, formatterResolver);
                    __devices__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::IPSWdl.JsonReps.jank();

            if (__devices__b__)
            {
                ____result.devices = __devices__;
            }

            return(____result);
        }
Ejemplo n.º 7
0
        public global::Utf8Json.Formatters.TargetClassContractless Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                return(null);
            }


            var __Number1__    = default(sbyte);
            var __Number1__b__ = false;
            var __Number2__    = default(short);
            var __Number2__b__ = false;
            var __Number3__    = default(int);
            var __Number3__b__ = false;
            var __Number4__    = default(long);
            var __Number4__b__ = false;
            var __Number5__    = default(byte);
            var __Number5__b__ = false;
            var __Number6__    = default(ushort);
            var __Number6__b__ = false;
            var __Number7__    = default(uint);
            var __Number7__b__ = false;
            var __Number8__    = default(ulong);
            var __Number8__b__ = false;
            var __Str__        = default(string);
            var __Str__b__     = false;
            var __Array__      = default(int[]);
            var __Array__b__   = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __Number1__    = reader.ReadSByte();
                    __Number1__b__ = true;
                    break;

                case 1:
                    __Number2__    = reader.ReadInt16();
                    __Number2__b__ = true;
                    break;

                case 2:
                    __Number3__    = reader.ReadInt32();
                    __Number3__b__ = true;
                    break;

                case 3:
                    __Number4__    = reader.ReadInt64();
                    __Number4__b__ = true;
                    break;

                case 4:
                    __Number5__    = reader.ReadByte();
                    __Number5__b__ = true;
                    break;

                case 5:
                    __Number6__    = reader.ReadUInt16();
                    __Number6__b__ = true;
                    break;

                case 6:
                    __Number7__    = reader.ReadUInt32();
                    __Number7__b__ = true;
                    break;

                case 7:
                    __Number8__    = reader.ReadUInt64();
                    __Number8__b__ = true;
                    break;

                case 8:
                    __Str__    = reader.ReadString();
                    __Str__b__ = true;
                    break;

                case 9:
                    __Array__    = formatterResolver.GetFormatterWithVerify <int[]>().Deserialize(ref reader, formatterResolver);
                    __Array__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::Utf8Json.Formatters.TargetClassContractless();

            if (__Number1__b__)
            {
                ____result.Number1 = __Number1__;
            }
            if (__Number2__b__)
            {
                ____result.Number2 = __Number2__;
            }
            if (__Number3__b__)
            {
                ____result.Number3 = __Number3__;
            }
            if (__Number4__b__)
            {
                ____result.Number4 = __Number4__;
            }
            if (__Number5__b__)
            {
                ____result.Number5 = __Number5__;
            }
            if (__Number6__b__)
            {
                ____result.Number6 = __Number6__;
            }
            if (__Number7__b__)
            {
                ____result.Number7 = __Number7__;
            }
            if (__Number8__b__)
            {
                ____result.Number8 = __Number8__;
            }
            if (__Str__b__)
            {
                ____result.Str = __Str__;
            }
            if (__Array__b__)
            {
                ____result.Array = __Array__;
            }

            return(____result);
        }
Ejemplo n.º 8
0
        public global::Utf8Json.Formatters.LongUnion Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                throw new InvalidOperationException("typecode is null, struct not supported");
            }


            var __Int1__      = default(int);
            var __Int1__b__   = false;
            var __Int2__      = default(int);
            var __Int2__b__   = false;
            var __Float__     = default(float);
            var __Float__b__  = false;
            var __Double__    = default(double);
            var __Double__b__ = false;
            var __Long__      = default(ulong);
            var __Long__b__   = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __Int1__    = reader.ReadInt32();
                    __Int1__b__ = true;
                    break;

                case 1:
                    __Int2__    = reader.ReadInt32();
                    __Int2__b__ = true;
                    break;

                case 2:
                    __Float__    = reader.ReadSingle();
                    __Float__b__ = true;
                    break;

                case 3:
                    __Double__    = reader.ReadDouble();
                    __Double__b__ = true;
                    break;

                case 4:
                    __Long__    = reader.ReadUInt64();
                    __Long__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::Utf8Json.Formatters.LongUnion();

            if (__Int1__b__)
            {
                ____result.Int1 = __Int1__;
            }
            if (__Int2__b__)
            {
                ____result.Int2 = __Int2__;
            }
            if (__Float__b__)
            {
                ____result.Float = __Float__;
            }
            if (__Double__b__)
            {
                ____result.Double = __Double__;
            }
            if (__Long__b__)
            {
                ____result.Long = __Long__;
            }

            return(____result);
        }
Ejemplo n.º 9
0
        public global::RectJson Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                return(null);
            }


            var __M_x__    = default(float);
            var __M_x__b__ = false;
            var __M_y__    = default(float);
            var __M_y__b__ = false;
            var __M_w__    = default(float);
            var __M_w__b__ = false;
            var __M_h__    = default(float);
            var __M_h__b__ = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __M_x__    = reader.ReadSingle();
                    __M_x__b__ = true;
                    break;

                case 1:
                    __M_y__    = reader.ReadSingle();
                    __M_y__b__ = true;
                    break;

                case 2:
                    __M_w__    = reader.ReadSingle();
                    __M_w__b__ = true;
                    break;

                case 3:
                    __M_h__    = reader.ReadSingle();
                    __M_h__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::RectJson();

            if (__M_x__b__)
            {
                ____result.M_x = __M_x__;
            }
            if (__M_y__b__)
            {
                ____result.M_y = __M_y__;
            }
            if (__M_w__b__)
            {
                ____result.M_w = __M_w__;
            }
            if (__M_h__b__)
            {
                ____result.M_h = __M_h__;
            }

            return(____result);
        }
Ejemplo n.º 10
0
        public global::IPSWdl.JsonReps.FirmwareListing Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                throw new InvalidOperationException("typecode is null, struct not supported");
            }


            var __name__           = default(string);
            var __name__b__        = false;
            var __identifier__     = default(string);
            var __identifier__b__  = false;
            var __boardconfig__    = default(string);
            var __boardconfig__b__ = false;
            var __platform__       = default(string);
            var __platform__b__    = false;
            var __cpid__           = default(int);
            var __cpid__b__        = false;
            var __bdid__           = default(int);
            var __bdid__b__        = false;
            var __firmwares__      = default(global::System.Collections.Generic.List <global::IPSWdl.JsonReps.Firmware>);
            var __firmwares__b__   = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __name__    = reader.ReadString();
                    __name__b__ = true;
                    break;

                case 1:
                    __identifier__    = reader.ReadString();
                    __identifier__b__ = true;
                    break;

                case 2:
                    __boardconfig__    = reader.ReadString();
                    __boardconfig__b__ = true;
                    break;

                case 3:
                    __platform__    = reader.ReadString();
                    __platform__b__ = true;
                    break;

                case 4:
                    __cpid__    = reader.ReadInt32();
                    __cpid__b__ = true;
                    break;

                case 5:
                    __bdid__    = reader.ReadInt32();
                    __bdid__b__ = true;
                    break;

                case 6:
                    __firmwares__    = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::IPSWdl.JsonReps.Firmware> >().Deserialize(ref reader, formatterResolver);
                    __firmwares__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::IPSWdl.JsonReps.FirmwareListing();

            if (__name__b__)
            {
                ____result.name = __name__;
            }
            if (__identifier__b__)
            {
                ____result.identifier = __identifier__;
            }
            if (__boardconfig__b__)
            {
                ____result.boardconfig = __boardconfig__;
            }
            if (__platform__b__)
            {
                ____result.platform = __platform__;
            }
            if (__cpid__b__)
            {
                ____result.cpid = __cpid__;
            }
            if (__bdid__b__)
            {
                ____result.bdid = __bdid__;
            }
            if (__firmwares__b__)
            {
                ____result.firmwares = __firmwares__;
            }

            return(____result);
        }
Ejemplo n.º 11
0
        public global::IPSWdl.JsonReps.Firmware Deserialize(ref JsonReader reader, global::Utf8Json.IJsonFormatterResolver formatterResolver)
        {
            if (reader.ReadIsNull())
            {
                throw new InvalidOperationException("typecode is null, struct not supported");
            }


            var __identifier__    = default(string);
            var __identifier__b__ = false;
            var __version__       = default(string);
            var __version__b__    = false;
            var __buildid__       = default(string);
            var __buildid__b__    = false;
            var __sha1sum__       = default(string);
            var __sha1sum__b__    = false;
            var __md5sum__        = default(string);
            var __md5sum__b__     = false;
            var __filesize__      = default(long);
            var __filesize__b__   = false;
            var __url__           = default(string);
            var __url__b__        = false;
            var __uploaddate__    = default(global::System.DateTime);
            var __uploaddate__b__ = false;

            var ____count = 0;

            reader.ReadIsBeginObjectWithVerify();
            while (!reader.ReadIsEndObjectWithSkipValueSeparator(ref ____count))
            {
                var stringKey = reader.ReadPropertyNameSegmentRaw();
                int key;
                if (!____keyMapping.TryGetValueSafe(stringKey, out key))
                {
                    reader.ReadNextBlock();
                    goto NEXT_LOOP;
                }

                switch (key)
                {
                case 0:
                    __identifier__    = reader.ReadString();
                    __identifier__b__ = true;
                    break;

                case 1:
                    __version__    = reader.ReadString();
                    __version__b__ = true;
                    break;

                case 2:
                    __buildid__    = reader.ReadString();
                    __buildid__b__ = true;
                    break;

                case 3:
                    __sha1sum__    = reader.ReadString();
                    __sha1sum__b__ = true;
                    break;

                case 4:
                    __md5sum__    = reader.ReadString();
                    __md5sum__b__ = true;
                    break;

                case 5:
                    __filesize__    = reader.ReadInt64();
                    __filesize__b__ = true;
                    break;

                case 6:
                    __url__    = reader.ReadString();
                    __url__b__ = true;
                    break;

                case 7:
                    __uploaddate__    = formatterResolver.GetFormatterWithVerify <global::System.DateTime>().Deserialize(ref reader, formatterResolver);
                    __uploaddate__b__ = true;
                    break;

                default:
                    reader.ReadNextBlock();
                    break;
                }

NEXT_LOOP:
                continue;
            }

            var ____result = new global::IPSWdl.JsonReps.Firmware();

            if (__identifier__b__)
            {
                ____result.identifier = __identifier__;
            }
            if (__version__b__)
            {
                ____result.version = __version__;
            }
            if (__buildid__b__)
            {
                ____result.buildid = __buildid__;
            }
            if (__sha1sum__b__)
            {
                ____result.sha1sum = __sha1sum__;
            }
            if (__md5sum__b__)
            {
                ____result.md5sum = __md5sum__;
            }
            if (__filesize__b__)
            {
                ____result.filesize = __filesize__;
            }
            if (__url__b__)
            {
                ____result.url = __url__;
            }
            if (__uploaddate__b__)
            {
                ____result.uploaddate = __uploaddate__;
            }

            return(____result);
        }