public global::TestData2.B Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); IFormatterResolver formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var __ass__ = default(global::System.Collections.Generic.List <global::TestData2.A>); var __c__ = default(global::TestData2.C); var __a__ = default(int); for (int i = 0; i < length; i++) { ReadOnlySpan <byte> stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 3: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 7566177UL) { goto FAIL; } __ass__ = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::TestData2.A> >().Deserialize(ref reader, options); continue; case 1: switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey)) { default: goto FAIL; case 99UL: __c__ = formatterResolver.GetFormatterWithVerify <global::TestData2.C>().Deserialize(ref reader, options); continue; case 97UL: __a__ = reader.ReadInt32(); continue; } } } var ____result = new global::TestData2.B() { ass = __ass__, c = __c__, a = __a__, }; reader.Depth--; return(____result); }
public global::TestData2.PropNameCheck2 Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); IFormatterResolver formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var __MyProperty1__ = default(string); var __MyProperty2__ = default(string); for (int i = 0; i < length; i++) { ReadOnlySpan <byte> stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 11: switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey)) { default: goto FAIL; case 8243118316933118285UL: switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey)) { default: goto FAIL; case 3242356UL: __MyProperty1__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options); continue; case 3307892UL: __MyProperty2__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options); continue; } } } } var ____result = new global::TestData2.PropNameCheck2() { MyProperty1 = __MyProperty1__, MyProperty2 = __MyProperty2__, }; reader.Depth--; return(____result); }
public global::TestData2.Nest2.IdType Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } reader.Skip(); var ____result = new global::TestData2.Nest2.IdType(); return(____result); }
public global::TestData2.Nest2 Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); IFormatterResolver formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var __EnumId__ = default(global::TestData2.Nest2.Id); var __ClassId__ = default(global::TestData2.Nest2.IdType); for (int i = 0; i < length; i++) { ReadOnlySpan <byte> stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 6: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 110266531802693UL) { goto FAIL; } __EnumId__ = formatterResolver.GetFormatterWithVerify <global::TestData2.Nest2.Id>().Deserialize(ref reader, options); continue; case 7: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 28228257876896835UL) { goto FAIL; } __ClassId__ = formatterResolver.GetFormatterWithVerify <global::TestData2.Nest2.IdType>().Deserialize(ref reader, options); continue; } } var ____result = new global::TestData2.Nest2() { EnumId = __EnumId__, ClassId = __ClassId__, }; reader.Depth--; return(____result); }
public global::TestData2.A Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); var formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var ____result = new global::TestData2.A(); for (int i = 0; i < length; i++) { var stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 1: switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey)) { default: goto FAIL; case 97UL: ____result.a = reader.ReadInt32(); continue; case 99UL: ____result.c = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <global::TestData2.C>(formatterResolver).Deserialize(ref reader, options); continue; } case 2: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 29538UL) { goto FAIL; } ____result.bs = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <global::System.Collections.Generic.List <global::TestData2.B> >(formatterResolver).Deserialize(ref reader, options); continue; } } reader.Depth--; return(____result); }
public global::DRXLibrary.Models.Drx.Store.DrxStoreCache Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); IFormatterResolver formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var __Stores__ = default(global::System.Collections.Generic.List <global::DRXLibrary.Models.Drx.Store.LocalDrxStore>); for (int i = 0; i < length; i++) { ReadOnlySpan <byte> stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 6: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 126879548798035UL) { goto FAIL; } __Stores__ = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::DRXLibrary.Models.Drx.Store.LocalDrxStore> >().Deserialize(ref reader, options); continue; } } var ____result = new global::DRXLibrary.Models.Drx.Store.DrxStoreCache() { Stores = __Stores__, }; reader.Depth--; return(____result); }
public global::TestData2.Record Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); var formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var __SomeProperty__ = default(string); for (int i = 0; i < length; i++) { var stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 12: if (!global::System.MemoryExtensions.SequenceEqual(stringKey, GetSpan_SomeProperty().Slice(1))) { goto FAIL; } __SomeProperty__ = global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <string>(formatterResolver).Deserialize(ref reader, options); continue; } } var ____result = new global::TestData2.Record(__SomeProperty__); reader.Depth--; return(____result); }
public global::DRXLibrary.Models.Drx.Document.DrxDocumentHeader Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); IFormatterResolver formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var __Title__ = default(string); var __TimeStamp__ = default(global::System.DateTimeOffset); var __Vrel__ = default(global::DRXLibrary.Models.Drx.Document.DrxDocumentVrel); var __Flags__ = default(global::System.Collections.Generic.List <global::System.Guid>); var __Store__ = default(global::System.Guid); var __Encrypted__ = default(bool); var __Key__ = default(global::CoreLibrary.Models.Crypto.CryptoKey); var __SecurityLevel__ = default(global::DRXLibrary.Models.Drx.DrxSecurityLevel); var __BodyType__ = default(global::DRXLibrary.Models.Drx.DrxBodyType); for (int i = 0; i < length; i++) { ReadOnlySpan <byte> stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 5: switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey)) { default: goto FAIL; case 435611265364UL: __Title__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options); continue; case 495655676998UL: __Flags__ = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::System.Guid> >().Deserialize(ref reader, options); continue; case 435711603795UL: __Store__ = formatterResolver.GetFormatterWithVerify <global::System.Guid>().Deserialize(ref reader, options); continue; } case 9: switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey)) { default: goto FAIL; case 7881708724407855444UL: if (stringKey[0] != 112) { goto FAIL; } __TimeStamp__ = formatterResolver.GetFormatterWithVerify <global::System.DateTimeOffset>().Deserialize(ref reader, options); continue; case 7310591762041630277UL: if (stringKey[0] != 100) { goto FAIL; } __Encrypted__ = reader.ReadBoolean(); continue; } case 4: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 1818587734UL) { goto FAIL; } __Vrel__ = formatterResolver.GetFormatterWithVerify <global::DRXLibrary.Models.Drx.Document.DrxDocumentVrel>().Deserialize(ref reader, options); continue; case 3: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 7955787UL) { goto FAIL; } __Key__ = formatterResolver.GetFormatterWithVerify <global::CoreLibrary.Models.Crypto.CryptoKey>().Deserialize(ref reader, options); continue; case 13: if (!global::System.MemoryExtensions.SequenceEqual(stringKey, GetSpan_SecurityLevel().Slice(1))) { goto FAIL; } __SecurityLevel__ = formatterResolver.GetFormatterWithVerify <global::DRXLibrary.Models.Drx.DrxSecurityLevel>().Deserialize(ref reader, options); continue; case 8: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 7309475598943153986UL) { goto FAIL; } __BodyType__ = formatterResolver.GetFormatterWithVerify <global::DRXLibrary.Models.Drx.DrxBodyType>().Deserialize(ref reader, options); continue; } } var ____result = new global::DRXLibrary.Models.Drx.Document.DrxDocumentHeader() { Title = __Title__, TimeStamp = __TimeStamp__, Vrel = __Vrel__, Flags = __Flags__, Store = __Store__, Encrypted = __Encrypted__, Key = __Key__, SecurityLevel = __SecurityLevel__, BodyType = __BodyType__, }; reader.Depth--; return(____result); }
public global::DRXLibrary.Models.Drx.Store.LocalDrxStore Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { if (reader.TryReadNil()) { return(null); } options.Security.DepthStep(ref reader); IFormatterResolver formatterResolver = options.Resolver; var length = reader.ReadMapHeader(); var __Id__ = default(global::System.Guid); var __Name__ = default(string); var __Encrypted__ = default(bool); var __Key__ = default(global::CoreLibrary.Models.Crypto.CryptoKey); var __FlagDefinitions__ = default(global::System.Collections.Generic.List <global::DRXLibrary.Models.Drx.DrxFlag>); for (int i = 0; i < length; i++) { ReadOnlySpan <byte> stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader); switch (stringKey.Length) { default: FAIL: reader.Skip(); continue; case 2: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 25673UL) { goto FAIL; } __Id__ = formatterResolver.GetFormatterWithVerify <global::System.Guid>().Deserialize(ref reader, options); continue; case 4: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 1701667150UL) { goto FAIL; } __Name__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options); continue; case 9: if (!global::System.MemoryExtensions.SequenceEqual(stringKey, GetSpan_Encrypted().Slice(1))) { goto FAIL; } __Encrypted__ = reader.ReadBoolean(); continue; case 3: if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 7955787UL) { goto FAIL; } __Key__ = formatterResolver.GetFormatterWithVerify <global::CoreLibrary.Models.Crypto.CryptoKey>().Deserialize(ref reader, options); continue; case 15: if (!global::System.MemoryExtensions.SequenceEqual(stringKey, GetSpan_FlagDefinitions().Slice(1))) { goto FAIL; } __FlagDefinitions__ = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::DRXLibrary.Models.Drx.DrxFlag> >().Deserialize(ref reader, options); continue; } } var ____result = new global::DRXLibrary.Models.Drx.Store.LocalDrxStore() { Id = __Id__, Name = __Name__, Encrypted = __Encrypted__, Key = __Key__, FlagDefinitions = __FlagDefinitions__, }; reader.Depth--; return(____result); }
public global::TestData2.Nest2.Id Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options) { return((global::TestData2.Nest2.Id)reader.ReadInt32()); }