encode static method

void encode(
  1. XdrDataOutputStream stream,
  2. XdrSorobanAuthorizedInvocation encoded
)

Implementation

static void encode(
    XdrDataOutputStream stream, XdrSorobanAuthorizedInvocation encoded) {
  XdrSorobanAuthorizedFunction.encode(stream, encoded.function);
  int subSize = encoded.subInvocations.length;
  stream.writeInt(subSize);
  for (int i = 0; i < subSize; i++) {
    XdrSorobanAuthorizedInvocation.encode(stream, encoded.subInvocations[i]);
  }
}