Packable

external interface Packable<T : ERROR CLASS: Symbol not found for JsAny>(source)

Static interface for types which can store their values as packed elements in an array. These methods and properties are expected to be defined on a constructor function.

See also

Inheritors

Properties

Link copied to clipboard
abstract val packedLength: Int

The number of elements used to pack the object into an array.

Functions

Link copied to clipboard
abstract fun pack(value: T, array: ERROR CLASS: Symbol not found for ReadonlyArray<ERROR CLASS: Symbol not found for JsDouble>, startingIndex: Int? = definedExternally): ERROR CLASS: Symbol not found for ReadonlyArray<ERROR CLASS: Symbol not found for JsDouble>

Stores the provided instance into the provided array.

Link copied to clipboard
abstract fun unpack(array: ERROR CLASS: Symbol not found for ReadonlyArray<ERROR CLASS: Symbol not found for JsDouble>, startingIndex: Int? = definedExternally, result: T? = definedExternally): T

Retrieves an instance from a packed array.