public static LedgerCloseValueSignature Decode(XdrDataInputStream stream)
        {
            LedgerCloseValueSignature decodedLedgerCloseValueSignature = new LedgerCloseValueSignature();

            decodedLedgerCloseValueSignature.NodeID    = NodeID.Decode(stream);
            decodedLedgerCloseValueSignature.Signature = Signature.Decode(stream);
            return(decodedLedgerCloseValueSignature);
        }
예제 #2
0
            public static void Encode(XdrDataOutputStream stream, StellarValueExt encodedStellarValueExt)
            {
                stream.WriteInt((int)encodedStellarValueExt.Discriminant.InnerValue);
                switch (encodedStellarValueExt.Discriminant.InnerValue)
                {
                case StellarValueType.StellarValueTypeEnum.STELLAR_VALUE_BASIC:
                    break;

                case StellarValueType.StellarValueTypeEnum.STELLAR_VALUE_SIGNED:
                    LedgerCloseValueSignature.Encode(stream, encodedStellarValueExt.LcValueSignature);
                    break;
                }
            }
예제 #3
0
            public static StellarValueExt Decode(XdrDataInputStream stream)
            {
                StellarValueExt  decodedStellarValueExt = new StellarValueExt();
                StellarValueType discriminant           = StellarValueType.Decode(stream);

                decodedStellarValueExt.Discriminant = discriminant;
                switch (decodedStellarValueExt.Discriminant.InnerValue)
                {
                case StellarValueType.StellarValueTypeEnum.STELLAR_VALUE_BASIC:
                    break;

                case StellarValueType.StellarValueTypeEnum.STELLAR_VALUE_SIGNED:
                    decodedStellarValueExt.LcValueSignature = LedgerCloseValueSignature.Decode(stream);
                    break;
                }
                return(decodedStellarValueExt);
            }
 public static void Encode(XdrDataOutputStream stream, LedgerCloseValueSignature encodedLedgerCloseValueSignature)
 {
     NodeID.Encode(stream, encodedLedgerCloseValueSignature.NodeID);
     Signature.Encode(stream, encodedLedgerCloseValueSignature.Signature);
 }