encode static method
Implementation
static void encode(
XdrDataOutputStream stream, XdrSCContractInstance encoded) {
XdrContractExecutable.encode(stream, encoded.executable);
if (encoded.storage == null) {
stream.writeInt(0);
} else {
stream.writeInt(1);
int mapSize = encoded.storage!.length;
stream.writeInt(mapSize);
for (int i = 0; i < mapSize; i++) {
XdrSCMapEntry.encode(stream, encoded.storage![i]);
}
}
}