mimekit-ts - v1.0.0
    Preparing search index...

    Function encodePhrase

    • Encode a phrase according to RFC 2047 using supplied formatting options.

      Parameters

      • options: FormatOptions

        Formatting options.

      • charset: string | CharsetEncoding

        Charset encoding or name.

      • phrase: string

        Phrase to encode.

      • startIndex: number

        Starting character index.

      • count: number

        Number of characters to encode.

      Returns Uint8Array

      The encoded phrase bytes.

      options, charset, or phrase is invalid.

      startIndex or count is outside phrase.

    • Encode a phrase according to RFC 2047 using supplied formatting options.

      Parameters

      Returns Uint8Array

      The encoded phrase bytes.

    • Encode a phrase according to RFC 2047 using default formatting options.

      Parameters

      • charset: string | CharsetEncoding

        Charset encoding or name.

      • phrase: string

        Phrase to encode.

      • OptionalstartIndex: number

        Starting character index.

      • Optionalcount: number

        Number of characters to encode.

      Returns Uint8Array

      The encoded phrase bytes.