encode method Null safety
- XdrDataOutputStream stream,
- XdrSorobanAuthorizedContractFunction encoded
Implementation
static void encode(XdrDataOutputStream stream,
XdrSorobanAuthorizedContractFunction encoded) {
XdrSCAddress.encode(stream, encoded.contractAddress);
stream.writeString(encoded.functionName);
int argsSize = encoded.args.length;
stream.writeInt(argsSize);
for (int i = 0; i < argsSize; i++) {
XdrSCVal.encode(stream, encoded.args[i]);
}
}