コード例 #1
0
        /// <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(ReagentDataChunk <UInt32> value, Span <byte> buffer, ref int offset)
        {
            //Type: ReagentDataChunk Field: 1 Name: One Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.One, buffer, ref offset);

            //Type: ReagentDataChunk Field: 2 Name: Two Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.Two, buffer, ref offset);

            //Type: ReagentDataChunk Field: 3 Name: Three Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.Three, buffer, ref offset);

            //Type: ReagentDataChunk Field: 4 Name: Four Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.Four, buffer, ref offset);

            //Type: ReagentDataChunk Field: 5 Name: Five Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.Five, buffer, ref offset);

            //Type: ReagentDataChunk Field: 6 Name: Six Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.Six, buffer, ref offset);

            //Type: ReagentDataChunk Field: 7 Name: Seven Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.Seven, buffer, ref offset);

            //Type: ReagentDataChunk Field: 8 Name: Eight Type: UInt32;
            GenericTypePrimitiveSerializerStrategy <UInt32> .Instance.Write(value.Eight, buffer, ref offset);
        }
        /// <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(ReagentDataChunk <Int32> value, Span <byte> buffer, ref int offset)
        {
            //Type: ReagentDataChunk Field: 1 Name: One Type: Int32
            ;
            value.One = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);

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

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

            //Type: ReagentDataChunk Field: 4 Name: Four Type: Int32
            ;
            value.Four = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);

            //Type: ReagentDataChunk Field: 5 Name: Five Type: Int32
            ;
            value.Five = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);

            //Type: ReagentDataChunk Field: 6 Name: Six Type: Int32
            ;
            value.Six = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);

            //Type: ReagentDataChunk Field: 7 Name: Seven Type: Int32
            ;
            value.Seven = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);

            //Type: ReagentDataChunk Field: 8 Name: Eight Type: Int32
            ;
            value.Eight = GenericTypePrimitiveSerializerStrategy <Int32> .Instance.Read(buffer, ref offset);
        }