encode static method
- XdrDataOutputStream stream,
- XdrInvokeHostFunctionSuccessPreImage encoded
Implementation
static void encode(XdrDataOutputStream stream,
XdrInvokeHostFunctionSuccessPreImage encoded) {
XdrSCVal.encode(stream, encoded.returnValue);
int eventsSize = encoded.events.length;
stream.writeInt(eventsSize);
for (int i = 0; i < eventsSize; i++) {
XdrContractEvent.encode(stream, encoded._events[i]);
}
}