예제 #1
0
        public void AddInt64(long number)
        {
            var integer = new ScriptInteger(number);
            var bytes   = integer.ToBytes();

            AddData(bytes);
        }
예제 #2
0
        public int PopInt32()
        {
            var scriptInt = new ScriptInteger(Pop(), _minimalEncoding, ScriptInteger.MathOpcodeMaxLength);

            return((int)scriptInt.Value);
        }
예제 #3
0
        public void Push(int value)
        {
            var scriptInt = new ScriptInteger(value);

            Push(scriptInt.ToBytes());
        }