Пример #1
0
        public override IEnumerator ReceivePayload(VisualPayload payload)
        {
            foreach (var entry in Scope.GetEntries(payload.Data))
            {
                try
                {
                    var repeatBytes = RepeatByBytes.GetValue(entry);
                    var stringData  = StringInput.GetValue(entry);


                    var bitStream = InternalArrayBitstream.GenerateBitStreamFromLetterNumbers(stringData);
                    bitStream.AdvanceByBytes = repeatBytes;

                    BitStreamTarget.SetValue(bitStream, entry);
                }
                catch
                {
                    Debug.LogError("Bitstream cannot be created!");
                    var stringData2 = StringInput.GetValue(entry);
                }
            }

            var iterator = Router.TransmitAll(payload);

            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }