decode method
Implementation
static XdrAccountEntry decode(XdrDataInputStream stream) {
XdrAccountEntry decodedAccountEntry = XdrAccountEntry();
decodedAccountEntry.accountID = XdrAccountID.decode(stream);
decodedAccountEntry.balance = XdrInt64.decode(stream);
decodedAccountEntry.seqNum = XdrSequenceNumber.decode(stream);
decodedAccountEntry.numSubEntries = XdrUint32.decode(stream);
int inflationDestPresent = stream.readInt();
if (inflationDestPresent != 0) {
decodedAccountEntry.inflationDest = XdrAccountID.decode(stream);
}
decodedAccountEntry.flags = XdrUint32.decode(stream);
decodedAccountEntry.homeDomain = XdrString32.decode(stream);
decodedAccountEntry.thresholds = XdrThresholds.decode(stream);
int signersSize = stream.readInt();
decodedAccountEntry.signers = List<XdrSigner>(signersSize);
for (int i = 0; i < signersSize; i++) {
decodedAccountEntry.signers[i] = XdrSigner.decode(stream);
}
decodedAccountEntry.ext = XdrAccountEntryExt.decode(stream);
return decodedAccountEntry;
}