• 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) => undefined | T)

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

        • (prefixHex): undefined | T
        • Parameters

          • prefixHex: string

          Returns undefined | T

    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.