node-ctypes - v2.17.1
    Preparing search index...

    Interface ArrayProxy<T>

    Proxy interface for array index access and iteration.

    interface ArrayProxy<T = any> {
        "[iterator]"(): Iterator<T>;
        length: number;
        _type_: any;
        _length_: number;
        toJSON(): T[];
        _buffer: Buffer;
        [index: number]: T;
    }

    Type Parameters

    • T = any

    Hierarchy

    • Pick<
          T[],
          keyof T[] & (
              | "at"
              | "copyWithin"
              | "entries"
              | "every"
              | "fill"
              | "filter"
              | "find"
              | "findIndex"
              | "findLast"
              | "findLastIndex"
              | "forEach"
              | "includes"
              | "indexOf"
              | "join"
              | "keys"
              | "lastIndexOf"
              | "map"
              | "reduce"
              | "reduceRight"
              | "reverse"
              | "slice"
              | "some"
              | "sort"
              | "toLocaleString"
              | "toReversed"
              | "toSorted"
              | "values"
              | "with"
          ),
      >
      • ArrayProxy

    Indexable

    • [index: number]: T
    Index
    length: number

    Number of elements (Python len(arr)); the size in bytes is byteLength.

    _type_: any

    The element type (Python: the class attribute _type_ through the instance).

    _length_: number

    The element count (Python: the class attribute _length_ through the instance).

    _buffer: Buffer

    The Buffer of the array: for an array on native memory (ArrayTypeDef.from_address) a Buffer over that memory, as Python's memoryview() (a copy where EXTERNAL_BUFFERS is false).