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

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