Beispiel #1
0
        public Op Read()
        {
            var b = Inner.ReadByte();

            if (b == -1)
            {
                return(null);
            }
            var opcode = (OpcodeType)b;

            if (Op.IsPushCode(opcode))
            {
                Op op = new Op();
                op.Code     = opcode;
                op.PushData = Op.ReadData(op, Inner, IgnoreIncoherentPushData);
                if (op.IncompleteData == true)
                {
                    return(null);
                }
                return(op);
            }
            return(new Op()
            {
                Code = opcode
            });
        }
Beispiel #2
0
		public Op Read()
		{
			var b = Inner.ReadByte();
			if(b == -1)
				return null;
			var opcode = (OpcodeType)b;
			if(Op.IsPushCode(opcode))
			{
				Op op = new Op();
				op.Code = opcode;
				op.PushData = Op.ReadData(op, Inner, IgnoreIncoherentPushData);
				return op;
			}
			return new Op()
			{
				Code = opcode
			};
		}
Beispiel #3
0
        public Op Read()
        {
            var b = Inner.ReadByte();

            if (b == -1)
            {
                return(null);
            }
            var opcode = (OpcodeType)b;

            if (Op.IsPushCode(opcode))
            {
                Op op = new Op();
                op.Code     = opcode;
                op.PushData = op.ReadData(Inner);
                return(op);
            }
            return(new Op()
            {
                Code = opcode
            });
        }
Beispiel #4
0
		public Op Read()
		{
			var b = Inner.ReadByte();
			if(b == -1)
				return null;
			var opcode = (OpcodeType)b;
			if(Op.IsPushCode(opcode))
			{
				Op op = new Op();
				op.Code = opcode;
				op.PushData = op.ReadData(Inner);
				return op;
			}
			return new Op()
			{
				Code = opcode
			};
		}