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

    Class YDecoder

    Incrementally decodes content encoded with yEnc.

    yEnc is most commonly used with Usenet and is a binary encoding that includes a 32-bit cyclic redundancy check. For more information, see www.yenc.org.

    Implements

    Index
    • Creates a new yEnc decoder.

      Parameters

      • payloadOnly: boolean = false

        If true, decoding begins immediately rather than after finding a =ybegin line.

      Returns YDecoder

    encoding: ContentEncoding = 'default'

    The encoding that this decoder supports.

    • Estimates the number of bytes needed to decode the specified number of input bytes.

      Parameters

      • inputLength: number

        The input length.

      Returns number

      The estimated output length.

    • Decodes the specified input into the output buffer.

      Parameters

      • input: Uint8Array

        The input buffer.

      • startIndex: number

        The starting index of the input buffer.

      • length: number

        The length of the input range.

      • output: Uint8Array

        The output buffer.

      Returns number

      The number of bytes written to the output buffer.

      The input range is invalid or the output buffer is too small.