decode static method
- Unpacker u
Implementation
static PeerInfo? decode(Unpacker u) {
  switch (u.unpackListLength()) {
    case 0: return null;
    case 4: break;
    default: throw DecodeError();
  }
  return PeerInfo(
    addr: (u.unpackString())!,
    source: (PeerSource.decode(u))!,
    state: (PeerState.decode(u))!,
    stats: (Stats.decode(u))!,
  );
}