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

    Class RtfCompressedToRtf

    A filter to decompress a compressed RTF stream.

    Used to decompress a compressed RTF stream.

    Hierarchy (View Summary)

    Index
    outputBuffer?: Uint8Array<ArrayBufferLike>

    The reusable output buffer used by this filter.

    compressionMode: number = RtfCompressionMode.Unknown

    Gets the compression mode.

    At least 12 bytes from the stream must be processed before this property value will be accurate.

    • get isValidCrc32(): boolean

      Gets whether the CRC32 is valid.

      Until all data has been processed, this property will always return false.

      Returns boolean

    • Filter the specified input buffer.

      Parameters

      • input: Uint8Array

        The input buffer.

      • startIndex: number

        The starting index of the input buffer.

      • length: number

        The number of bytes of input to filter.

      Returns MimeFilterResult

      The filtered output range.

      input is not a Uint8Array.

      startIndex and length do not specify a valid range in input.

    • Filter the specified input buffer, flushing all internally buffered data to the output.

      Parameters

      • input: Uint8Array

        The input buffer.

      • startIndex: number

        The starting index of the input buffer.

      • length: number

        The number of bytes of input to filter.

      Returns MimeFilterResult

      The filtered output range.

      input is not a Uint8Array.

      startIndex and length do not specify a valid range in input.

    • Save the remaining input for the next round of processing.

      Parameters

      • input: Uint8Array

        The input buffer.

      • startIndex: number

        The starting index of the buffer to save.

      • length: number

        The length of the buffer to save, starting at startIndex.

      Returns void

    • Ensure that the output buffer is at least the specified size.

      Parameters

      • size: number

        The minimum size needed.

      • keep: boolean

        Whether the current output should be preserved.

      Returns Uint8Array

      The output buffer.

    • Filter the specified input buffer.

      Parameters

      • input: Uint8Array

        the input buffer.

      • startIndex: number

        the starting index of the input buffer.

      • length: number

        the number of bytes to filter.

      • _flush: boolean

        whether to flush the filter.

      Returns MimeFilterResult

      the filtered output.