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

    Class PassThroughDecoder

    A pass-through decoder.

    Simply copies data as-is from the input buffer into the output buffer.

    Implements

    Index
    encoding: ContentEncoding

    The encoding to expose from this decoder.

    • Copies the input buffer into the output buffer, verbatim.

      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.