Beispiel #1
0
 public BitStream()
 {
     rawBitStream = new RawBitStream.RawBitStream();
     rawBitStream.Run();
     numberWriter  = rawBitStream.GetComponent <RawBitStream.Numbers>();
     bytesWriter   = rawBitStream.GetComponent <RawBitStream.Bytes>();
     uuidsWriter   = rawBitStream.GetComponent <RawBitStream.Uuids>();
     addressWriter = rawBitStream.GetComponent <RawBitStream.Address>();
 }
Beispiel #2
0
        public void Run()
        {
            var numbers = new Numbers();
            var bytes   = new Bytes();
            var uuids   = new Uuids();
            var address = new Address();

            AddChild(numbers);
            AddChild(bytes);
            AddChild(uuids);
            AddChild(address);

            bytes.Run(numbers);
            uuids.Run(bytes);
            address.Run(bytes);
        }
Beispiel #3
0
        public void Run()
        {
            var numbers = new Numbers();
            var bytes   = new Bytes();
            var uuids   = new Uuids();
            var address = new Address();

            Plug(this, numbers);
            Plug(this, bytes);
            Plug(this, uuids);
            Plug(this, address);

            bytes.Run(numbers);
            uuids.Run(bytes);
            address.Run(bytes);
        }