NDNts
    Preparing search index...

    Function lpm

    • Perform name longest prefix match on a container of entries.

      Type Parameters

      • T

        Entry type, which must not be undefined.

      Parameters

      • name: Name

        Lookup target name.

      • get: (prefixHex: string) => undefined | T

        Callback function to retrieve entry by name prefix TLV-VALUE in hexadecimal format.

      Returns Iterable<T>

      Matched entries. The first result is the longest prefix match. Subsequent results are matches on successively shorter prefixes. The caller may early-return the iterator to ignore subsequent results.