Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContactStore

Bond store

Hierarchy

Indexable

[k: string]: any

Bond store

Index

Constructors

constructor

Properties

_fields

_fields: StoreField[]

count

count: number

index1

index1: Uint32Array

index2

index2: Uint32Array

length

length: number

type

type: Uint8Array

Accessors

_defaultFields

  • get _defaultFields(): Object[]

Methods

_init

  • _init(size: number): void

_initField

addContact

  • addContact(index1: number, index2: number, type?: undefined | number): void

addField

clear

  • clear(): void

copyFrom

  • copyFrom(other: Store, thisOffset: number, otherOffset: number, length: number): void
  • Copy data from one store to another

    Parameters

    • other: Store

      store to copy from

    • thisOffset: number

      offset to start copying to

    • otherOffset: number

      offset to start copying from

    • length: number

      number of entries to copy

    Returns void

copyWithin

  • copyWithin(offsetTarget: number, offsetSource: number, length: number): void
  • Copy data within this store

    Parameters

    • offsetTarget: number
    • offsetSource: number
    • length: number

      number of entries to copy

    Returns void

dispose

  • dispose(): void

growIfFull

  • growIfFull(): void

resize

  • resize(size?: undefined | number): void
  • Resize the store to the new size

    Parameters

    • Optional size: undefined | number

      new size

    Returns void

sort

  • sort(compareFunction: function): void
  • Sort entries in the store given the compare function

    Parameters

    • compareFunction: function

      function to sort by

        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    Returns void

Generated using TypeDoc