Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

  • T

Hierarchy

  • circular_buffer

Index

Constructors

  • Type Parameters

    • T

    Parameters

    • uCapacity: number

    Returns circular_buffer<T>

Accessors

  • get available(): number
  • Returns number

  • get capacity(): number
  • set capacity(newSize: number): void
  • Returns number

  • Parameters

    • newSize: number

    Returns void

  • get first(): T
  • Returns T

  • get isEmpty(): boolean
  • Returns boolean

  • get isFull(): boolean
  • Returns boolean

  • get last(): T
  • Returns T

  • get length(): number
  • set length(newLength: number): void
  • Returns number

  • Parameters

    • newLength: number

    Returns void

Methods

  • at(i: number): T
  • Parameters

    • i: number

    Returns T

  • clear(): T[]
  • Returns T[]

  • Parameters

    Returns boolean

  • fill(x: T): T[]
  • Parameters

    • x: T

    Returns T[]

  • Parameters

    Returns unknown

  • indexOf(searchElement: T, fromIndex?: number): number
  • Parameters

    • searchElement: T
    • Optional fromIndex: number

    Returns number

  • offset(): number
  • Returns number

  • pop(): T
  • Returns T

  • pos(i: number): T
  • Parameters

    • i: number

    Returns T

  • push(v: T): T
  • Parameters

    • v: T

    Returns T

  • resize(newSize: number, preferEnd?: boolean): void
  • Parameters

    • newSize: number
    • Optional preferEnd: boolean

    Returns void

  • Returns circular_buffer<T>

  • shove(v: T): T
  • Parameters

    • v: T

    Returns T

  • Parameters

    Returns boolean

  • toArray(): T[]
  • Returns T[]

  • Type Parameters

    • T

    Parameters

    • i: Iterable<T> | ArrayLike<T>
    • Optional map_fn: ((_k: T, _i: number) => T)
        • (_k: T, _i: number): T
        • Parameters

          • _k: T
          • _i: number

          Returns T

    • Optional t: unknown

    Returns circular_buffer<T>

Generated using TypeDoc