示例#1
0
            public static LedgerKeyData Decode(XdrDataInputStream stream)
            {
                LedgerKeyData decodedLedgerKeyData = new LedgerKeyData();

                decodedLedgerKeyData.AccountID = AccountID.Decode(stream);
                decodedLedgerKeyData.DataName  = String64.Decode(stream);
                return(decodedLedgerKeyData);
            }
        public static DataEntry Decode(XdrDataInputStream stream)
        {
            DataEntry decodedDataEntry = new DataEntry();

            decodedDataEntry.AccountID = AccountID.Decode(stream);
            decodedDataEntry.DataName  = String64.Decode(stream);
            decodedDataEntry.DataValue = DataValue.Decode(stream);
            decodedDataEntry.Ext       = DataEntryExt.Decode(stream);
            return(decodedDataEntry);
        }
        public static ManageDataOp Decode(XdrDataInputStream stream)
        {
            ManageDataOp decodedManageDataOp = new ManageDataOp();

            decodedManageDataOp.DataName = String64.Decode(stream);
            int DataValuePresent = stream.ReadInt();

            if (DataValuePresent != 0)
            {
                decodedManageDataOp.DataValue = DataValue.Decode(stream);
            }
            return(decodedManageDataOp);
        }