/// <summary>
        /// Auto-generated serialization/write method.
        /// Partial method implemented from shared partial definition.
        /// </summary>
        /// <param name="value">See external doc.</param>
        /// <param name="buffer">See external doc.</param>
        /// <param name="offset">See external doc.</param>
        public override void InternalWrite(GenericStaticallySizedArrayChunkThree <ItemEnchantmentType> value, Span <byte> buffer, ref int offset)
        {
            //Type: GenericStaticallySizedArrayChunkThree Field: 1 Name: One Type: ItemEnchantmentType;
            GenericPrimitiveEnumTypeSerializerStrategy <ItemEnchantmentType, Int32> .Instance.Write(value.One, buffer, ref offset);

            //Type: GenericStaticallySizedArrayChunkThree Field: 2 Name: Two Type: ItemEnchantmentType;
            GenericPrimitiveEnumTypeSerializerStrategy <ItemEnchantmentType, Int32> .Instance.Write(value.Two, buffer, ref offset);

            //Type: GenericStaticallySizedArrayChunkThree Field: 3 Name: Three Type: ItemEnchantmentType;
            GenericPrimitiveEnumTypeSerializerStrategy <ItemEnchantmentType, Int32> .Instance.Write(value.Three, buffer, ref offset);
        }
コード例 #2
0
        /// <summary>
        /// Auto-generated deserialization/read method.
        /// Partial method implemented from shared partial definition.
        /// </summary>
        /// <param name="value">See external doc.</param>
        /// <param name="buffer">See external doc.</param>
        /// <param name="offset">See external doc.</param>
        public override void InternalRead(GenericStaticallySizedArrayChunkThree <Int32> value, Span <byte> buffer, ref int offset)
        {
            //Type: GenericStaticallySizedArrayChunkThree Field: 1 Name: One Type: Int32;
            value.One = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);

            //Type: GenericStaticallySizedArrayChunkThree Field: 2 Name: Two Type: Int32;
            value.Two = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);

            //Type: GenericStaticallySizedArrayChunkThree Field: 3 Name: Three Type: Int32;
            value.Three = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);
        }