Implementation
static XdrLedgerFootprint decode(XdrDataInputStream stream) {
int readOnlySize = stream.readInt();
List<XdrLedgerKey> readOnly = List<XdrLedgerKey>.empty(growable: true);
for (int i = 0; i < readOnlySize; i++) {
readOnly.add(XdrLedgerKey.decode(stream));
}
int readWriteSize = stream.readInt();
List<XdrLedgerKey> readWrite = List<XdrLedgerKey>.empty(growable: true);
for (int i = 0; i < readWriteSize; i++) {
readWrite.add(XdrLedgerKey.decode(stream));
}
return XdrLedgerFootprint(readOnly, readWrite);
}