コード例 #1
0
        public global::MultiSyncPlayer Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                throw new global::System.InvalidOperationException("typecode is null, struct not supported");
            }

            options.Security.DepthStep(ref reader);
            var length = reader.ReadArrayHeader();
            var __C__  = default(int);
            var __S__  = default(byte[]);

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    __C__ = reader.ReadInt32();
                    break;

                case 1:
                    __S__ = reader.ReadBytes()?.ToArray();
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            var ____result = new global::MultiSyncPlayer(__C__, __S__);

            reader.Depth--;
            return(____result);
        }