Interface Decodable<R>

An object that knows how to decode itself from TLV.

Remarks

Most commonly, decodeFrom is added as a static method of type R, so that the constructor of R implements this interface.

interface Decodable<R> {
    decodeFrom: ((decoder) => R);
}

Type Parameters

  • R

    Result type.

Hierarchy

  • Decodable

    Properties

    Properties

    decodeFrom: ((decoder) => R)

    Type declaration

      • (decoder): R
      • Parameters

        Returns R

    Generated using TypeDoc