コード例 #1
0
        public uint Read(ref GenericFieldString2 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadShortString();
                data.name     = coherenceToUnityConverters.ToUnityFixedString64(coherenceField);
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
コード例 #2
0
        public void GenericFieldString2(IOutBitStream bitstream, GenericFieldString2 data)
        {
            var converted_name = coherenceToUnityConverters.FromUnityFixedString64(data.name);

            bitstream.WriteShortString(converted_name);
        }
コード例 #3
0
        private void DeserializeGenericFieldString2(Coherence.Replication.Protocol.Definition.IInBitStream protocolStream)
        {
            var ignored = new GenericFieldString2();

            unityReaders.Read(ref ignored, protocolStream);
        }
コード例 #4
0
        public void GenericFieldString2(IInBitStream bitstream, ref GenericFieldString2 data)
        {
            var name = bitstream.ReadShortString();

            data.name = coherenceToUnityConverters.ToUnityFixedString64(name);
        }