decode static method

Implementation

static XdrSCPHistoryEntry decode(XdrDataInputStream stream) {
  XdrSCPHistoryEntry decodedSCPHistoryEntry =
      XdrSCPHistoryEntry(stream.readInt());
  switch (decodedSCPHistoryEntry.discriminant) {
    case 0:
      decodedSCPHistoryEntry.v0 = XdrSCPHistoryEntryV0.decode(stream);
      break;
  }
  return decodedSCPHistoryEntry;
}