encode static method
Implementation
static void encode(
XdrDataOutputStream stream, XdrAccountEntry encodedAccountEntry) {
XdrAccountID.encode(stream, encodedAccountEntry.accountID);
XdrInt64.encode(stream, encodedAccountEntry.balance);
XdrSequenceNumber.encode(stream, encodedAccountEntry.seqNum);
XdrUint32.encode(stream, encodedAccountEntry.numSubEntries);
if (encodedAccountEntry.inflationDest != null) {
stream.writeInt(1);
XdrAccountID.encode(stream, encodedAccountEntry.inflationDest);
} else {
stream.writeInt(0);
}
XdrUint32.encode(stream, encodedAccountEntry.flags);
XdrString32.encode(stream, encodedAccountEntry.homeDomain);
XdrThresholds.encode(stream, encodedAccountEntry.thresholds);
int signersSize = encodedAccountEntry.signers.length;
stream.writeInt(signersSize);
for (int i = 0; i < signersSize; i++) {
XdrSigner.encode(stream, encodedAccountEntry.signers[i]);
}
XdrAccountEntryExt.encode(stream, encodedAccountEntry.ext);
}