Options
All
  • Public
  • Public/Protected
  • All
Menu

Class I2CPortMap

Different from Web I2C API specification.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional entries: null | readonly readonly [number, I2CPort][]

    Returns I2CPortMap

  • Parameters

    • iterable: Iterable<readonly [number, I2CPort]>

    Returns I2CPortMap

Properties

Readonly [toStringTag]

[toStringTag]: string

Readonly size

size: number

Static Readonly [species]

[species]: MapConstructor

Methods

[iterator]

  • [iterator](): IterableIterator<[number, I2CPort]>
  • Returns an iterable of entries in the map.

    Returns IterableIterator<[number, I2CPort]>

clear

  • clear(): void
  • Returns void

delete

  • delete(key: number): boolean
  • Parameters

    • key: number

    Returns boolean

entries

  • entries(): IterableIterator<[number, I2CPort]>
  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[number, I2CPort]>

forEach

  • forEach(callbackfn: (value: I2CPort, key: number, map: Map<number, I2CPort>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: I2CPort, key: number, map: Map<number, I2CPort>) => void
    • Optional thisArg: any

    Returns void

get

  • get(key: number): undefined | I2CPort
  • Parameters

    • key: number

    Returns undefined | I2CPort

getByName

  • getByName(portName: string): undefined | I2CPort

has

  • has(key: number): boolean
  • Parameters

    • key: number

    Returns boolean

keys

  • keys(): IterableIterator<number>
  • Returns an iterable of keys in the map

    Returns IterableIterator<number>

set

  • Parameters

    Returns I2CPortMap

values

  • values(): IterableIterator<I2CPort>
  • Returns an iterable of values in the map

    Returns IterableIterator<I2CPort>

Generated using TypeDoc