tuweni / org.apache.tuweni.devp2p / Endpoint / readFrom

readFrom

fun readFrom(reader: RLPReader): Endpoint (source)

Create an Endpoint by reading fields from the RLP input stream.

If the fields are wrapped into an RLP list, use reader.readList to unwrap before calling this method.

Parameters

reader - the RLP input stream from which to read

Exceptions

RLPException - if the RLP source does not decode to a valid endpoint

Return
the decoded endpoint