예제 #1
0
        public uint Read(ref GenericFieldInt7 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadIntegerRange(15, -9999);
                data.number   = coherenceField;
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
 public void GenericFieldInt7(IOutBitStream bitstream, GenericFieldInt7 data)
 {
     bitstream.WriteIntegerRange(data.number, 15, -9999);
 }
예제 #3
0
        private void DeserializeGenericFieldInt7(Coherence.Replication.Protocol.Definition.IInBitStream protocolStream)
        {
            var ignored = new GenericFieldInt7();

            unityReaders.Read(ref ignored, protocolStream);
        }
 public void GenericFieldInt7(IInBitStream bitstream, ref GenericFieldInt7 data)
 {
     data.number = bitstream.ReadIntegerRange(15, -9999);
 }