An IterableIterator that iterates a DataBuffer from startIndex to endIndex with an optional filter.

Type Parameters

  • T

Implements

  • IterableIterator<T>

Constructors

  • Type Parameters

    • T

    Parameters

    • data: T[]
    • size: number
    • startIndex: number
    • endIndex: number
    • length: number
    • Optionalfilter: (value: T) => boolean

    Returns DataBufferView<T>

Methods

  • Returns an iterator of a section of this buffer.

    Parameters

    • filter: (value: T) => boolean

      An optional callback filter.

    Returns IterableIterator<T>

  • Parameters

    • filter: (value: T) => boolean

    Returns number

  • Returns IteratorResult<T, T>

  • Returns an iterator of a section of this buffer.

    Parameters

    • start: number

      The beginning index of the specified portion of the buffer.

    • Optionalend: number

      The end index of the specified portion of the buffer. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the buffer.

    Returns IterableIterator<T>

  • Returns an iterator of a section of this buffer.

    Parameters

    • start: number

      The beginning index of the specified portion of the buffer.

    • Optionalend: number

      The end index of the specified portion of the buffer. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the buffer.

    • Optionalfilter: (value: T) => boolean

      An optional callback filter.

    Returns IterableIterator<T>