decode method
Implementation
static XdrAccountEntryV2 decode(XdrDataInputStream stream) {
XdrAccountEntryV2 decoded = XdrAccountEntryV2();
decoded.numSponsored = XdrUint32.decode(stream);
decoded.numSponsoring = XdrUint32.decode(stream);
int pSize = stream.readInt();
decoded.signerSponsoringIDs = List<XdrAccountID>(pSize);
for (int i = 0; i < pSize; i++) {
int sponsoringIDPresent = stream.readInt();
if (sponsoringIDPresent != 0) {
decoded.signerSponsoringIDs[i] = XdrAccountID.decode(stream);
}
}
decoded.ext = XdrAccountEntryV2Ext.decode(stream);
return decoded;
}