Beispiel #1
0
        public static Operation Decode(XdrDataInputStream stream)
        {
            Operation decodedOperation     = new Operation();
            int       SourceAccountPresent = stream.ReadInt();

            if (SourceAccountPresent != 0)
            {
                decodedOperation.SourceAccount = MuxedAccount.Decode(stream);
            }
            decodedOperation.Body = OperationBody.Decode(stream);
            return(decodedOperation);
        }
Beispiel #2
0
        public static Operation Decode(IByteReader stream)
        {
            Operation decodedOperation     = new Operation();
            int       sourceAccountPresent = XdrEncoding.DecodeInt32(stream);

            if (sourceAccountPresent != 0)
            {
                decodedOperation.SourceAccount = AccountID.Decode(stream);
            }
            decodedOperation.Body = OperationBody.Decode(stream);
            return(decodedOperation);
        }