NDNts

    Function decode

    • Decode a single object from Uint8Array.

      Type Parameters

      • R

      Parameters

      • input: Uint8Array

        Input buffer, which should contain the encoded object and nothing else.

      • d: Decodable<R>

        Decodable object type.

      Returns R

      Decoded object.

      Error Thrown if the input cannot be decoded as the specified object type, or there's junk leftover.

    MMNEPVFCICPMFPCPTTAAATR