예제 #1
0
        public uint Read(ref GenericFieldInt0 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 GenericFieldInt0(IOutBitStream bitstream, GenericFieldInt0 data)
 {
     bitstream.WriteIntegerRange(data.number, 15, -9999);
 }
예제 #3
0
        private void DeserializeGenericFieldInt0(Coherence.Replication.Protocol.Definition.IInBitStream protocolStream)
        {
            var ignored = new GenericFieldInt0();

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