public static void Encode(XdrDataOutputStream stream, LedgerEntryChangeType value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, ChangeTrustResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, ManageDataResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, Auth encodedAuth) { stream.WriteInt(encodedAuth.Unused); }
public static void Encode(XdrDataOutputStream stream, Uint32 encodedUint32) { stream.WriteInt(encodedUint32.InnerValue); }
public static void Encode(XdrDataOutputStream stream, ClaimClaimableBalanceResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, EndSponsoringFutureReservesResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, RevokeSponsorshipType value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, ClaimPredicateType value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, AllowTrustOp encodedAllowTrustOp) { AccountID.Encode(stream, encodedAllowTrustOp.Trustor); AllowTrustOpAsset.Encode(stream, encodedAllowTrustOp.Asset); stream.WriteInt(encodedAllowTrustOp.Authorize ? 1 : 0); }
public static void Encode(XdrDataOutputStream stream, SurveyMessageCommandType value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, ThresholdIndexes value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, StellarMessage encodedStellarMessage) { stream.WriteInt((int)encodedStellarMessage.Discriminant.InnerValue); switch (encodedStellarMessage.Discriminant.InnerValue) { case MessageType.MessageTypeEnum.ERROR_MSG: Error.Encode(stream, encodedStellarMessage.Error); break; case MessageType.MessageTypeEnum.HELLO: Hello.Encode(stream, encodedStellarMessage.Hello); break; case MessageType.MessageTypeEnum.AUTH: Auth.Encode(stream, encodedStellarMessage.Auth); break; case MessageType.MessageTypeEnum.DONT_HAVE: DontHave.Encode(stream, encodedStellarMessage.DontHave); break; case MessageType.MessageTypeEnum.GET_PEERS: break; case MessageType.MessageTypeEnum.PEERS: int peerssize = encodedStellarMessage.Peers.Length; stream.WriteInt(peerssize); for (int i = 0; i < peerssize; i++) { PeerAddress.Encode(stream, encodedStellarMessage.Peers[i]); } break; case MessageType.MessageTypeEnum.GET_TX_SET: Uint256.Encode(stream, encodedStellarMessage.TxSetHash); break; case MessageType.MessageTypeEnum.TX_SET: TransactionSet.Encode(stream, encodedStellarMessage.TxSet); break; case MessageType.MessageTypeEnum.TRANSACTION: TransactionEnvelope.Encode(stream, encodedStellarMessage.Transaction); break; case MessageType.MessageTypeEnum.GET_SCP_QUORUMSET: Uint256.Encode(stream, encodedStellarMessage.QSetHash); break; case MessageType.MessageTypeEnum.SCP_QUORUMSET: SCPQuorumSet.Encode(stream, encodedStellarMessage.QSet); break; case MessageType.MessageTypeEnum.SCP_MESSAGE: SCPEnvelope.Encode(stream, encodedStellarMessage.Envelope); break; case MessageType.MessageTypeEnum.GET_SCP_STATE: Uint32.Encode(stream, encodedStellarMessage.GetSCPLedgerSeq); break; } }
public static void Encode(XdrDataOutputStream stream, AccountMergeResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, SetTrustLineFlagsResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, SetOptionsOp encodedSetOptionsOp) { if (encodedSetOptionsOp.InflationDest != null) { stream.WriteInt(1); AccountID.Encode(stream, encodedSetOptionsOp.InflationDest); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.ClearFlags != null) { stream.WriteInt(1); Uint32.Encode(stream, encodedSetOptionsOp.ClearFlags); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.SetFlags != null) { stream.WriteInt(1); Uint32.Encode(stream, encodedSetOptionsOp.SetFlags); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.MasterWeight != null) { stream.WriteInt(1); Uint32.Encode(stream, encodedSetOptionsOp.MasterWeight); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.LowThreshold != null) { stream.WriteInt(1); Uint32.Encode(stream, encodedSetOptionsOp.LowThreshold); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.MedThreshold != null) { stream.WriteInt(1); Uint32.Encode(stream, encodedSetOptionsOp.MedThreshold); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.HighThreshold != null) { stream.WriteInt(1); Uint32.Encode(stream, encodedSetOptionsOp.HighThreshold); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.HomeDomain != null) { stream.WriteInt(1); String32.Encode(stream, encodedSetOptionsOp.HomeDomain); } else { stream.WriteInt(0); } if (encodedSetOptionsOp.Signer != null) { stream.WriteInt(1); Signer.Encode(stream, encodedSetOptionsOp.Signer); } else { stream.WriteInt(0); } }
public static void Encode(XdrDataOutputStream stream, BumpSequenceResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, PathPaymentResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, AccountFlags value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, OperationBody encodedOperationBody) { stream.WriteInt((int)encodedOperationBody.Discriminant.InnerValue); switch (encodedOperationBody.Discriminant.InnerValue) { case OperationType.OperationTypeEnum.CREATE_ACCOUNT: CreateAccountOp.Encode(stream, encodedOperationBody.CreateAccountOp); break; case OperationType.OperationTypeEnum.PAYMENT: PaymentOp.Encode(stream, encodedOperationBody.PaymentOp); break; case OperationType.OperationTypeEnum.PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp.Encode(stream, encodedOperationBody.PathPaymentStrictReceiveOp); break; case OperationType.OperationTypeEnum.MANAGE_SELL_OFFER: ManageSellOfferOp.Encode(stream, encodedOperationBody.ManageSellOfferOp); break; case OperationType.OperationTypeEnum.CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp.Encode(stream, encodedOperationBody.CreatePassiveSellOfferOp); break; case OperationType.OperationTypeEnum.SET_OPTIONS: SetOptionsOp.Encode(stream, encodedOperationBody.SetOptionsOp); break; case OperationType.OperationTypeEnum.CHANGE_TRUST: ChangeTrustOp.Encode(stream, encodedOperationBody.ChangeTrustOp); break; case OperationType.OperationTypeEnum.ALLOW_TRUST: AllowTrustOp.Encode(stream, encodedOperationBody.AllowTrustOp); break; case OperationType.OperationTypeEnum.ACCOUNT_MERGE: MuxedAccount.Encode(stream, encodedOperationBody.Destination); break; case OperationType.OperationTypeEnum.INFLATION: break; case OperationType.OperationTypeEnum.MANAGE_DATA: ManageDataOp.Encode(stream, encodedOperationBody.ManageDataOp); break; case OperationType.OperationTypeEnum.BUMP_SEQUENCE: BumpSequenceOp.Encode(stream, encodedOperationBody.BumpSequenceOp); break; case OperationType.OperationTypeEnum.MANAGE_BUY_OFFER: ManageBuyOfferOp.Encode(stream, encodedOperationBody.ManageBuyOfferOp); break; case OperationType.OperationTypeEnum.PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp.Encode(stream, encodedOperationBody.PathPaymentStrictSendOp); break; case OperationType.OperationTypeEnum.CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp.Encode(stream, encodedOperationBody.CreateClaimableBalanceOp); break; case OperationType.OperationTypeEnum.CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp.Encode(stream, encodedOperationBody.ClaimClaimableBalanceOp); break; case OperationType.OperationTypeEnum.BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp.Encode(stream, encodedOperationBody.BeginSponsoringFutureReservesOp); break; case OperationType.OperationTypeEnum.END_SPONSORING_FUTURE_RESERVES: break; case OperationType.OperationTypeEnum.REVOKE_SPONSORSHIP: RevokeSponsorshipOp.Encode(stream, encodedOperationBody.RevokeSponsorshipOp); break; case OperationType.OperationTypeEnum.CLAWBACK: ClawbackOp.Encode(stream, encodedOperationBody.ClawbackOp); break; case OperationType.OperationTypeEnum.CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp.Encode(stream, encodedOperationBody.ClawbackClaimableBalanceOp); break; case OperationType.OperationTypeEnum.SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp.Encode(stream, encodedOperationBody.SetTrustLineFlagsOp); break; } }
public static void Encode(XdrDataOutputStream stream, ManageOfferEffect value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, TransactionResultCode value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, OperationBody encodedOperationBody) { stream.WriteInt((int)encodedOperationBody.Discriminant.InnerValue); switch (encodedOperationBody.Discriminant.InnerValue) { case OperationType.OperationTypeEnum.CREATE_ACCOUNT: CreateAccountOp.Encode(stream, encodedOperationBody.CreateAccountOp); break; case OperationType.OperationTypeEnum.PAYMENT: PaymentOp.Encode(stream, encodedOperationBody.PaymentOp); break; case OperationType.OperationTypeEnum.PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp.Encode(stream, encodedOperationBody.PathPaymentStrictReceiveOp); break; case OperationType.OperationTypeEnum.MANAGE_SELL_OFFER: ManageSellOfferOp.Encode(stream, encodedOperationBody.ManageSellOfferOp); break; case OperationType.OperationTypeEnum.CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp.Encode(stream, encodedOperationBody.CreatePassiveSellOfferOp); break; case OperationType.OperationTypeEnum.SET_OPTIONS: SetOptionsOp.Encode(stream, encodedOperationBody.SetOptionsOp); break; case OperationType.OperationTypeEnum.CHANGE_TRUST: ChangeTrustOp.Encode(stream, encodedOperationBody.ChangeTrustOp); break; case OperationType.OperationTypeEnum.ALLOW_TRUST: AllowTrustOp.Encode(stream, encodedOperationBody.AllowTrustOp); break; case OperationType.OperationTypeEnum.ACCOUNT_MERGE: AccountID.Encode(stream, encodedOperationBody.Destination); break; case OperationType.OperationTypeEnum.INFLATION: break; case OperationType.OperationTypeEnum.MANAGE_DATA: ManageDataOp.Encode(stream, encodedOperationBody.ManageDataOp); break; case OperationType.OperationTypeEnum.BUMP_SEQUENCE: BumpSequenceOp.Encode(stream, encodedOperationBody.BumpSequenceOp); break; case OperationType.OperationTypeEnum.MANAGE_BUY_OFFER: ManageBuyOfferOp.Encode(stream, encodedOperationBody.ManageBuyOfferOp); break; case OperationType.OperationTypeEnum.PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp.Encode(stream, encodedOperationBody.PathPaymentStrictSendOp); break; } }
public static void Encode(XdrDataOutputStream stream, MemoType value) { stream.WriteInt((int)value.InnerValue); }
public static void Encode(XdrDataOutputStream stream, OperationResultTr encodedOperationResultTr) { stream.WriteInt((int)encodedOperationResultTr.Discriminant.InnerValue); switch (encodedOperationResultTr.Discriminant.InnerValue) { case OperationType.OperationTypeEnum.CREATE_ACCOUNT: CreateAccountResult.Encode(stream, encodedOperationResultTr.CreateAccountResult); break; case OperationType.OperationTypeEnum.PAYMENT: PaymentResult.Encode(stream, encodedOperationResultTr.PaymentResult); break; case OperationType.OperationTypeEnum.PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult.Encode(stream, encodedOperationResultTr.PathPaymentStrictReceiveResult); break; case OperationType.OperationTypeEnum.MANAGE_SELL_OFFER: ManageSellOfferResult.Encode(stream, encodedOperationResultTr.ManageSellOfferResult); break; case OperationType.OperationTypeEnum.CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult.Encode(stream, encodedOperationResultTr.CreatePassiveSellOfferResult); break; case OperationType.OperationTypeEnum.SET_OPTIONS: SetOptionsResult.Encode(stream, encodedOperationResultTr.SetOptionsResult); break; case OperationType.OperationTypeEnum.CHANGE_TRUST: ChangeTrustResult.Encode(stream, encodedOperationResultTr.ChangeTrustResult); break; case OperationType.OperationTypeEnum.ALLOW_TRUST: AllowTrustResult.Encode(stream, encodedOperationResultTr.AllowTrustResult); break; case OperationType.OperationTypeEnum.ACCOUNT_MERGE: AccountMergeResult.Encode(stream, encodedOperationResultTr.AccountMergeResult); break; case OperationType.OperationTypeEnum.INFLATION: InflationResult.Encode(stream, encodedOperationResultTr.InflationResult); break; case OperationType.OperationTypeEnum.MANAGE_DATA: ManageDataResult.Encode(stream, encodedOperationResultTr.ManageDataResult); break; case OperationType.OperationTypeEnum.BUMP_SEQUENCE: BumpSequenceResult.Encode(stream, encodedOperationResultTr.BumpSeqResult); break; case OperationType.OperationTypeEnum.MANAGE_BUY_OFFER: ManageBuyOfferResult.Encode(stream, encodedOperationResultTr.ManageBuyOfferResult); break; case OperationType.OperationTypeEnum.PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult.Encode(stream, encodedOperationResultTr.PathPaymentStrictSendResult); break; case OperationType.OperationTypeEnum.CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult.Encode(stream, encodedOperationResultTr.CreateClaimableBalanceResult); break; case OperationType.OperationTypeEnum.CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult.Encode(stream, encodedOperationResultTr.ClaimClaimableBalanceResult); break; case OperationType.OperationTypeEnum.BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult.Encode(stream, encodedOperationResultTr.BeginSponsoringFutureReservesResult); break; case OperationType.OperationTypeEnum.END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult.Encode(stream, encodedOperationResultTr.EndSponsoringFutureReservesResult); break; case OperationType.OperationTypeEnum.REVOKE_SPONSORSHIP: RevokeSponsorshipResult.Encode(stream, encodedOperationResultTr.RevokeSponsorshipResult); break; } }