encode static method
Implementation
static void encode(
XdrDataOutputStream stream, XdrSetOptionsOp encodedSetOptionsOp) {
if (encodedSetOptionsOp.inflationDest != null) {
stream.writeInt(1);
XdrAccountID.encode(stream, encodedSetOptionsOp.inflationDest);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.clearFlags != null) {
stream.writeInt(1);
XdrUint32.encode(stream, encodedSetOptionsOp.clearFlags);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.setFlags != null) {
stream.writeInt(1);
XdrUint32.encode(stream, encodedSetOptionsOp.setFlags);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.masterWeight != null) {
stream.writeInt(1);
XdrUint32.encode(stream, encodedSetOptionsOp.masterWeight);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.lowThreshold != null) {
stream.writeInt(1);
XdrUint32.encode(stream, encodedSetOptionsOp.lowThreshold);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.medThreshold != null) {
stream.writeInt(1);
XdrUint32.encode(stream, encodedSetOptionsOp.medThreshold);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.highThreshold != null) {
stream.writeInt(1);
XdrUint32.encode(stream, encodedSetOptionsOp.highThreshold);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.homeDomain != null) {
stream.writeInt(1);
XdrString32.encode(stream, encodedSetOptionsOp.homeDomain);
} else {
stream.writeInt(0);
}
if (encodedSetOptionsOp.signer != null) {
stream.writeInt(1);
XdrSigner.encode(stream, encodedSetOptionsOp.signer);
} else {
stream.writeInt(0);
}
}