decode static method

XdrSCPHistoryEntry decode(
  1. XdrDataInputStream stream
)

Implementation

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