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

    Class TnefReaderStream

    A stream for reading raw values from a TnefReader or property reader.

    Hierarchy (View Summary)

    Index
    • get length(): number

      Gets the length of the stream.

      Returns number

      seeking is not supported.

    • get position(): number

      Gets the current position within the stream.

      Returns number

      seeking is not supported.

    • set position(_value: number): void

      Sets the current position within the stream.

      Parameters

      • _value: number

      Returns void

      seeking is not supported.

    • Copy data from this stream to another stream.

      Parameters

      • destination: Stream

        The stream that will receive the copied data.

      • bufferSize: number = 4096

        The temporary buffer size to use while copying.

      Returns void

    • Validate buffer, offset, and count arguments for stream read/write operations.

      Parameters

      • buffer: Uint8Array

        The buffer supplied by the caller.

      • offset: number

        The starting offset in the buffer.

      • count: number

        The number of bytes to read or write.

      Returns void

      offset or count does not specify a valid range in buffer.

    • Throw for an unsupported stream operation.

      Parameters

      • operation: string

        The unsupported operation name.

      Returns never

      Always thrown because the operation is unsupported.

    • Read a sequence of bytes from the stream and advance the position by the number of bytes read.

      Parameters

      • buffer: Uint8Array

        the buffer to read data into.

      • offset: number

        the offset into the buffer to start reading data.

      • count: number

        the number of bytes to read.

      Returns number

      the number of bytes read into the buffer.

      offset or count is out of range.

      the stream has been disposed.

    • Write a sequence of bytes to the stream.

      Parameters

      • _buffer: Uint8Array
      • _offset: number
      • _count: number

      Returns void

      writing is not supported.

    • Set the position within the current stream.

      Parameters

      • _offset: number
      • _origin: "end" | "begin" | "current"

      Returns number

      seeking is not supported.