Skip to content

Instantly share code, notes, and snippets.

@Fejuto
Created May 15, 2017 06:54
Show Gist options
  • Save Fejuto/a9b838c1426f71ac7c05080006583793 to your computer and use it in GitHub Desktop.
Save Fejuto/a9b838c1426f71ac7c05080006583793 to your computer and use it in GitHub Desktop.
#pragma warning disable 618
#pragma warning disable 612
#pragma warning disable 414
#pragma warning disable 168
namespace MessagePack.Resolvers
{
using System;
using MessagePack;
public class GeneratedResolver : global::MessagePack.IFormatterResolver
{
public static readonly global::MessagePack.IFormatterResolver Instance = new GeneratedResolver();
GeneratedResolver()
{
}
public global::MessagePack.Formatters.IMessagePackFormatter<T> GetFormatter<T>()
{
return FormatterCache<T>.formatter;
}
static class FormatterCache<T>
{
public static readonly global::MessagePack.Formatters.IMessagePackFormatter<T> formatter;
static FormatterCache()
{
var f = GeneratedResolverGetFormatterHelper.GetFormatter(typeof(T));
if (f != null)
{
formatter = (global::MessagePack.Formatters.IMessagePackFormatter<T>)f;
}
}
}
}
internal static class GeneratedResolverGetFormatterHelper
{
static readonly global::System.Collections.Generic.Dictionary<Type, int> lookup;
static GeneratedResolverGetFormatterHelper()
{
lookup = new global::System.Collections.Generic.Dictionary<Type, int>(34)
{
{typeof(global::System.Collections.Generic.HashSet<global::System.DayOfWeek>), 0 },
{typeof(global::System.Collections.Generic.List<global::IUnion>), 1 },
{typeof(global::System.DayOfWeek), 2 },
{typeof(global::IUnion), 3 },
{typeof(global::CurrentIDC), 4 },
{typeof(global::IDC), 5 },
{typeof(global::ActivityC), 6 },
{typeof(global::SelectedActivity), 7 },
{typeof(global::NameC), 8 },
{typeof(global::ProjectElementC), 9 },
{typeof(global::TimeC), 10 },
{typeof(global::DurationC), 11 },
{typeof(global::UpdateViewC), 12 },
{typeof(global::ActiveC), 13 },
{typeof(global::ScheduleC), 14 },
{typeof(global::ScheduleTimeC), 15 },
{typeof(global::ScheduleRepeatC), 16 },
{typeof(global::ScheduleRepeatDaysC), 17 },
{typeof(global::ScheduleNotificationC), 18 },
{typeof(global::ScheduleNextDueC), 19 },
{typeof(global::ScheduleDueNotificationC), 20 },
{typeof(global::ViewNextDueStringC), 21 },
{typeof(global::ProjectC), 22 },
{typeof(global::CantEditC), 23 },
{typeof(global::SelectedProjectC), 24 },
{typeof(global::DefaultProjectC), 25 },
{typeof(global::TodoC), 26 },
{typeof(global::ColorProfileC), 27 },
{typeof(global::IconC), 28 },
{typeof(global::FlagDestroyC), 29 },
{typeof(global::LastSaveC), 30 },
{typeof(global::StatisticRequestC), 31 },
{typeof(global::B), 32 },
{typeof(global::A), 33 },
};
}
internal static object GetFormatter(Type t)
{
int key;
if (!lookup.TryGetValue(t, out key)) return null;
switch (key)
{
case 0: return new global::MessagePack.Formatters.HashSetFormatter<global::System.DayOfWeek>();
case 1: return new global::MessagePack.Formatters.ListFormatter<global::IUnion>();
case 2: return new MessagePack.Formatters.System.DayOfWeekFormatter();
case 3: return new MessagePack.Formatters..IUnionFormatter();
case 4: return new MessagePack.Formatters..CurrentIDCFormatter();
case 5: return new MessagePack.Formatters..IDCFormatter();
case 6: return new MessagePack.Formatters..ActivityCFormatter();
case 7: return new MessagePack.Formatters..SelectedActivityFormatter();
case 8: return new MessagePack.Formatters..NameCFormatter();
case 9: return new MessagePack.Formatters..ProjectElementCFormatter();
case 10: return new MessagePack.Formatters..TimeCFormatter();
case 11: return new MessagePack.Formatters..DurationCFormatter();
case 12: return new MessagePack.Formatters..UpdateViewCFormatter();
case 13: return new MessagePack.Formatters..ActiveCFormatter();
case 14: return new MessagePack.Formatters..ScheduleCFormatter();
case 15: return new MessagePack.Formatters..ScheduleTimeCFormatter();
case 16: return new MessagePack.Formatters..ScheduleRepeatCFormatter();
case 17: return new MessagePack.Formatters..ScheduleRepeatDaysCFormatter();
case 18: return new MessagePack.Formatters..ScheduleNotificationCFormatter();
case 19: return new MessagePack.Formatters..ScheduleNextDueCFormatter();
case 20: return new MessagePack.Formatters..ScheduleDueNotificationCFormatter();
case 21: return new MessagePack.Formatters..ViewNextDueStringCFormatter();
case 22: return new MessagePack.Formatters..ProjectCFormatter();
case 23: return new MessagePack.Formatters..CantEditCFormatter();
case 24: return new MessagePack.Formatters..SelectedProjectCFormatter();
case 25: return new MessagePack.Formatters..DefaultProjectCFormatter();
case 26: return new MessagePack.Formatters..TodoCFormatter();
case 27: return new MessagePack.Formatters..ColorProfileCFormatter();
case 28: return new MessagePack.Formatters..IconCFormatter();
case 29: return new MessagePack.Formatters..FlagDestroyCFormatter();
case 30: return new MessagePack.Formatters..LastSaveCFormatter();
case 31: return new MessagePack.Formatters..StatisticRequestCFormatter();
case 32: return new MessagePack.Formatters..BFormatter();
case 33: return new MessagePack.Formatters..AFormatter();
default: return null;
}
}
}
}
#pragma warning disable 168
#pragma warning restore 414
#pragma warning restore 618
#pragma warning restore 612
#pragma warning disable 618
#pragma warning disable 612
#pragma warning disable 414
#pragma warning disable 168
namespace MessagePack.Formatters.System
{
using System;
using MessagePack;
public sealed class DayOfWeekFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::System.DayOfWeek>
{
public int Serialize(ref byte[] bytes, int offset, global::System.DayOfWeek value, global::MessagePack.IFormatterResolver formatterResolver)
{
return MessagePackBinary.WriteInt32(ref bytes, offset, (Int32)value);
}
public global::System.DayOfWeek Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
return (global::System.DayOfWeek)MessagePackBinary.ReadInt32(bytes, offset, out readSize);
}
}
}
#pragma warning disable 168
#pragma warning restore 414
#pragma warning restore 618
#pragma warning restore 612
#pragma warning disable 618
#pragma warning disable 612
#pragma warning disable 414
#pragma warning disable 168
namespace MessagePack.Formatters.
{
using System;
using System.Collections.Generic;
using MessagePack;
public sealed class IUnionFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::IUnion>
{
readonly Dictionary<RuntimeTypeHandle, KeyValuePair<int, int>> typeToKeyAndJumpMap;
readonly Dictionary<int, int> keyToJumpMap;
public IUnionFormatter()
{
this.typeToKeyAndJumpMap = new Dictionary<RuntimeTypeHandle, KeyValuePair<int, int>>(2, global::MessagePack.Internal.RuntimeTypeHandleEqualityComparer.Default)
{
{ typeof(global::A).TypeHandle, new KeyValuePair<int, int>(0, 0) },
{ typeof(global::B).TypeHandle, new KeyValuePair<int, int>(1, 1) },
};
this.keyToJumpMap = new Dictionary<int, int>(2)
{
{ 0, 0 },
{ 1, 1 },
};
}
public int Serialize(ref byte[] bytes, int offset, global::IUnion value, global::MessagePack.IFormatterResolver formatterResolver)
{
KeyValuePair<int, int> keyValuePair;
if (value != null && this.typeToKeyAndJumpMap.TryGetValue(value.GetType().TypeHandle, out keyValuePair))
{
var startOffset = offset;
offset += MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 2);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, keyValuePair.Key);
switch (keyValuePair.Value)
{
case 0:
offset += formatterResolver.GetFormatterWithVerify<global::A>().Serialize(ref bytes, offset, (global::A)value, formatterResolver);
break;
case 1:
offset += formatterResolver.GetFormatterWithVerify<global::B>().Serialize(ref bytes, offset, (global::B)value, formatterResolver);
break;
default:
break;
}
return offset - startOffset;
}
return MessagePackBinary.WriteNil(ref bytes, offset);
}
public global::IUnion Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
if (MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize) != 2)
{
throw new InvalidOperationException("Invalid Union data was detected. Type:global::IUnion");
}
offset += readSize;
var key = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
offset += readSize;
global::IUnion result = null;
switch (key)
{
case 0:
result = (global::IUnion)formatterResolver.GetFormatterWithVerify<global::A>().Deserialize(bytes, offset, formatterResolver, out readSize);
offset += readSize;
break;
case 1:
result = (global::IUnion)formatterResolver.GetFormatterWithVerify<global::B>().Deserialize(bytes, offset, formatterResolver, out readSize);
offset += readSize;
break;
default:
offset += MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
readSize = offset - startOffset;
return result;
}
}
}
#pragma warning disable 168
#pragma warning restore 414
#pragma warning restore 618
#pragma warning restore 612
#pragma warning disable 618
#pragma warning disable 612
#pragma warning disable 414
#pragma warning disable 168
namespace MessagePack.Formatters.
{
using System;
using MessagePack;
public sealed class CurrentIDCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::CurrentIDC>
{
public int Serialize(ref byte[] bytes, int offset, global::CurrentIDC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, value.id);
return offset - startOffset;
}
public global::CurrentIDC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __id__ = default(int);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__id__ = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::CurrentIDC();
____result.id = __id__;
return ____result;
}
}
public sealed class IDCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::IDC>
{
public int Serialize(ref byte[] bytes, int offset, global::IDC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, value.id);
return offset - startOffset;
}
public global::IDC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __id__ = default(int);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__id__ = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::IDC();
____result.id = __id__;
return ____result;
}
}
public sealed class ActivityCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ActivityC>
{
public int Serialize(ref byte[] bytes, int offset, global::ActivityC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::ActivityC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ActivityC();
return ____result;
}
}
public sealed class SelectedActivityFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::SelectedActivity>
{
public int Serialize(ref byte[] bytes, int offset, global::SelectedActivity value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, value.activityId);
return offset - startOffset;
}
public global::SelectedActivity Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __activityId__ = default(int);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__activityId__ = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::SelectedActivity();
____result.activityId = __activityId__;
return ____result;
}
}
public sealed class NameCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::NameC>
{
public int Serialize(ref byte[] bytes, int offset, global::NameC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<string>().Serialize(ref bytes, offset, value.name, formatterResolver);
return offset - startOffset;
}
public global::NameC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __name__ = default(string);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__name__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::NameC();
____result.name = __name__;
return ____result;
}
}
public sealed class ProjectElementCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ProjectElementC>
{
public int Serialize(ref byte[] bytes, int offset, global::ProjectElementC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, value.projectId);
return offset - startOffset;
}
public global::ProjectElementC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __projectId__ = default(int);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__projectId__ = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ProjectElementC();
____result.projectId = __projectId__;
return ____result;
}
}
public sealed class TimeCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::TimeC>
{
public int Serialize(ref byte[] bytes, int offset, global::TimeC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<global::System.DateTime>().Serialize(ref bytes, offset, value.time, formatterResolver);
return offset - startOffset;
}
public global::TimeC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __time__ = default(global::System.DateTime);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__time__ = formatterResolver.GetFormatterWithVerify<global::System.DateTime>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::TimeC();
____result.time = __time__;
return ____result;
}
}
public sealed class DurationCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::DurationC>
{
public int Serialize(ref byte[] bytes, int offset, global::DurationC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<global::System.TimeSpan>().Serialize(ref bytes, offset, value.duration, formatterResolver);
return offset - startOffset;
}
public global::DurationC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __duration__ = default(global::System.TimeSpan);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__duration__ = formatterResolver.GetFormatterWithVerify<global::System.TimeSpan>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::DurationC();
____result.duration = __duration__;
return ____result;
}
}
public sealed class UpdateViewCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::UpdateViewC>
{
public int Serialize(ref byte[] bytes, int offset, global::UpdateViewC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::UpdateViewC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::UpdateViewC();
return ____result;
}
}
public sealed class ActiveCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ActiveC>
{
public int Serialize(ref byte[] bytes, int offset, global::ActiveC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::ActiveC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ActiveC();
return ____result;
}
}
public sealed class ScheduleCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ScheduleC>
{
public int Serialize(ref byte[] bytes, int offset, global::ScheduleC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::ScheduleC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ScheduleC();
return ____result;
}
}
public sealed class ScheduleTimeCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ScheduleTimeC>
{
public int Serialize(ref byte[] bytes, int offset, global::ScheduleTimeC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<global::System.TimeSpan>().Serialize(ref bytes, offset, value.timeOfDay, formatterResolver);
return offset - startOffset;
}
public global::ScheduleTimeC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __timeOfDay__ = default(global::System.TimeSpan);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__timeOfDay__ = formatterResolver.GetFormatterWithVerify<global::System.TimeSpan>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ScheduleTimeC();
____result.timeOfDay = __timeOfDay__;
return ____result;
}
}
public sealed class ScheduleRepeatCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ScheduleRepeatC>
{
public int Serialize(ref byte[] bytes, int offset, global::ScheduleRepeatC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::ScheduleRepeatC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ScheduleRepeatC();
return ____result;
}
}
public sealed class ScheduleRepeatDaysCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ScheduleRepeatDaysC>
{
public int Serialize(ref byte[] bytes, int offset, global::ScheduleRepeatDaysC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<global::System.Collections.Generic.HashSet<global::System.DayOfWeek>>().Serialize(ref bytes, offset, value.days, formatterResolver);
return offset - startOffset;
}
public global::ScheduleRepeatDaysC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __days__ = default(global::System.Collections.Generic.HashSet<global::System.DayOfWeek>);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__days__ = formatterResolver.GetFormatterWithVerify<global::System.Collections.Generic.HashSet<global::System.DayOfWeek>>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ScheduleRepeatDaysC();
____result.days = __days__;
return ____result;
}
}
public sealed class ScheduleNotificationCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ScheduleNotificationC>
{
public int Serialize(ref byte[] bytes, int offset, global::ScheduleNotificationC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::ScheduleNotificationC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ScheduleNotificationC();
return ____result;
}
}
public sealed class ScheduleNextDueCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ScheduleNextDueC>
{
public int Serialize(ref byte[] bytes, int offset, global::ScheduleNextDueC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<global::System.DateTime>().Serialize(ref bytes, offset, value.nextDue, formatterResolver);
return offset - startOffset;
}
public global::ScheduleNextDueC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __nextDue__ = default(global::System.DateTime);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__nextDue__ = formatterResolver.GetFormatterWithVerify<global::System.DateTime>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ScheduleNextDueC();
____result.nextDue = __nextDue__;
return ____result;
}
}
public sealed class ScheduleDueNotificationCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ScheduleDueNotificationC>
{
public int Serialize(ref byte[] bytes, int offset, global::ScheduleDueNotificationC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, value.id);
return offset - startOffset;
}
public global::ScheduleDueNotificationC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __id__ = default(int);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__id__ = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ScheduleDueNotificationC();
____result.id = __id__;
return ____result;
}
}
public sealed class ViewNextDueStringCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ViewNextDueStringC>
{
public int Serialize(ref byte[] bytes, int offset, global::ViewNextDueStringC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<string>().Serialize(ref bytes, offset, value.nextDueString, formatterResolver);
return offset - startOffset;
}
public global::ViewNextDueStringC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __nextDueString__ = default(string);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__nextDueString__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ViewNextDueStringC();
____result.nextDueString = __nextDueString__;
return ____result;
}
}
public sealed class ProjectCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ProjectC>
{
public int Serialize(ref byte[] bytes, int offset, global::ProjectC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::ProjectC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ProjectC();
return ____result;
}
}
public sealed class CantEditCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::CantEditC>
{
public int Serialize(ref byte[] bytes, int offset, global::CantEditC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::CantEditC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::CantEditC();
return ____result;
}
}
public sealed class SelectedProjectCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::SelectedProjectC>
{
public int Serialize(ref byte[] bytes, int offset, global::SelectedProjectC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, value.projectId);
return offset - startOffset;
}
public global::SelectedProjectC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __projectId__ = default(int);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__projectId__ = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::SelectedProjectC();
____result.projectId = __projectId__;
return ____result;
}
}
public sealed class DefaultProjectCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::DefaultProjectC>
{
public int Serialize(ref byte[] bytes, int offset, global::DefaultProjectC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::DefaultProjectC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::DefaultProjectC();
return ____result;
}
}
public sealed class TodoCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::TodoC>
{
public int Serialize(ref byte[] bytes, int offset, global::TodoC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::TodoC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::TodoC();
return ____result;
}
}
public sealed class ColorProfileCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::ColorProfileC>
{
public int Serialize(ref byte[] bytes, int offset, global::ColorProfileC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<string>().Serialize(ref bytes, offset, value.colorProfile, formatterResolver);
return offset - startOffset;
}
public global::ColorProfileC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __colorProfile__ = default(string);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__colorProfile__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::ColorProfileC();
____result.colorProfile = __colorProfile__;
return ____result;
}
}
public sealed class IconCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::IconC>
{
public int Serialize(ref byte[] bytes, int offset, global::IconC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<string>().Serialize(ref bytes, offset, value.icon, formatterResolver);
return offset - startOffset;
}
public global::IconC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __icon__ = default(string);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__icon__ = formatterResolver.GetFormatterWithVerify<string>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::IconC();
____result.icon = __icon__;
return ____result;
}
}
public sealed class FlagDestroyCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::FlagDestroyC>
{
public int Serialize(ref byte[] bytes, int offset, global::FlagDestroyC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::FlagDestroyC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::FlagDestroyC();
return ____result;
}
}
public sealed class LastSaveCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::LastSaveC>
{
public int Serialize(ref byte[] bytes, int offset, global::LastSaveC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += formatterResolver.GetFormatterWithVerify<global::System.DateTime>().Serialize(ref bytes, offset, value.time, formatterResolver);
return offset - startOffset;
}
public global::LastSaveC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __time__ = default(global::System.DateTime);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__time__ = formatterResolver.GetFormatterWithVerify<global::System.DateTime>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::LastSaveC();
____result.time = __time__;
return ____result;
}
}
public sealed class StatisticRequestCFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::StatisticRequestC>
{
public int Serialize(ref byte[] bytes, int offset, global::StatisticRequestC value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 0);
return offset - startOffset;
}
public global::StatisticRequestC Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::StatisticRequestC();
return ____result;
}
}
public sealed class BFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::B>
{
public int Serialize(ref byte[] bytes, int offset, global::B value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 1);
offset += MessagePackBinary.WriteInt32(ref bytes, offset, value.c);
return offset - startOffset;
}
public global::B Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __c__ = default(int);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__c__ = MessagePackBinary.ReadInt32(bytes, offset, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::B();
____result.c = __c__;
return ____result;
}
}
public sealed class AFormatter : global::MessagePack.Formatters.IMessagePackFormatter<global::A>
{
public int Serialize(ref byte[] bytes, int offset, global::A value, global::MessagePack.IFormatterResolver formatterResolver)
{
if (value == null)
{
return global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
}
var startOffset = offset;
offset += global::MessagePack.MessagePackBinary.WriteFixedArrayHeaderUnsafe(ref bytes, offset, 3);
offset += formatterResolver.GetFormatterWithVerify<global::B>().Serialize(ref bytes, offset, value.b, formatterResolver);
offset += global::MessagePack.MessagePackBinary.WriteNil(ref bytes, offset);
offset += formatterResolver.GetFormatterWithVerify<global::System.Collections.Generic.List<global::IUnion>>().Serialize(ref bytes, offset, value.comps, formatterResolver);
return offset - startOffset;
}
public global::A Deserialize(byte[] bytes, int offset, global::MessagePack.IFormatterResolver formatterResolver, out int readSize)
{
if (global::MessagePack.MessagePackBinary.IsNil(bytes, offset))
{
readSize = 1;
return null;
}
var startOffset = offset;
var length = global::MessagePack.MessagePackBinary.ReadArrayHeader(bytes, offset, out readSize);
offset += readSize;
var __b__ = default(global::B);
var __comps__ = default(global::System.Collections.Generic.List<global::IUnion>);
for (int i = 0; i < length; i++)
{
var key = i;
switch (key)
{
case 0:
__b__ = formatterResolver.GetFormatterWithVerify<global::B>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
case 2:
__comps__ = formatterResolver.GetFormatterWithVerify<global::System.Collections.Generic.List<global::IUnion>>().Deserialize(bytes, offset, formatterResolver, out readSize);
break;
default:
readSize = global::MessagePack.MessagePackBinary.ReadNextBlock(bytes, offset);
break;
}
offset += readSize;
}
readSize = offset - startOffset;
var ____result = new global::A();
____result.b = __b__;
____result.comps = __comps__;
return ____result;
}
}
}
#pragma warning disable 168
#pragma warning restore 414
#pragma warning restore 618
#pragma warning restore 612
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment