Last updated

API / geotoolkit / util / TypedArrayLimits / TypedArrayLimits

Class: TypedArrayLimits

util.TypedArrayLimits.TypedArrayLimits

Table of contents

Constructors
Properties
Methods

Contents

Constructors

new TypedArrayLimits()

new TypedArrayLimits()

Properties

FIREFOX_ELEMENTSINSTANCED_LIMIT

Static FIREFOX_ELEMENTSINSTANCED_LIMIT: number

Methods

getArrayThreeLimit

Static getArrayThreeLimit(): number

Calculate the limit Chrome allocates memory with Array.push(value1, value2, value3) For Safari there is no limit in allocating with regular array. The limit is obtained by pushing three values to an empty array in a try/catch block until it fails. This value could be different across devices and browsers.

Returns

number


getFloat32ArrayLimit

Static getFloat32ArrayLimit(): number

Get the maximum number of elements that can be stored with Float32Array. The limit is obtained by allocating arrays of larger sizes repeatedly in a try/catch block until it fails. This value could be different across devices and browsers.

Returns

number


getUint32ArrayLimit

Static getUint32ArrayLimit(): number

Get the maximum number of elements that can be stored with Uint32Array. The limit is obtained by allocating arrays of larger sizes repeatedly in a try/catch block until it fails. This value could be different across devices and browsers.

Returns

number