NDNts

    Interface Constructor<M>

    An object that knows how to decode itself from TLV.

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

    interface Constructor<M extends Metadata = Metadata> {
        new Constructor(name?: Name): M;
        decodeFrom: (decoder: Decoder) => M;
    }

    Type Parameters

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    Constructors

    Properties

    decodeFrom: (decoder: Decoder) => M
    MMNEPVFCICPMFPCPTTAAATR