encode static method
Implementation
static void encode(XdrDataOutputStream stream,
XdrAllowTrustOpAsset encodedAllowTrustOpAsset) {
stream.writeInt(encodedAllowTrustOpAsset.discriminant.value);
switch (encodedAllowTrustOpAsset.discriminant) {
case XdrAssetType.ASSET_TYPE_CREDIT_ALPHANUM4:
stream.write(encodedAllowTrustOpAsset.assetCode4!);
break;
case XdrAssetType.ASSET_TYPE_CREDIT_ALPHANUM12:
stream.write(encodedAllowTrustOpAsset.assetCode12!);
break;
}
}