類型的靜態(tài)接口,可以將其值作為壓縮元素存儲(chǔ)在數(shù)組中。這些方法和屬性應(yīng)該在構(gòu)造函數(shù)函數(shù)上定義。
- PackableForInterpolation
See:
Members
(static) packedLength : Number
用于將對(duì)象打包到數(shù)組中的元素?cái)?shù)。
Methods
(static) pack(value, array, startingIndex)
將提供的實(shí)例存儲(chǔ)到提供的數(shù)組中。
Parameters:
value
(*)
要打包的值。
array
(Array.<Number>)
要打包的數(shù)組。
startingIndex
(Number)
(default 0
)
數(shù)組中開始打包元素的索引。
從壓縮數(shù)組中檢索實(shí)例。
Parameters:
array
(Array.<Number>)
壓縮數(shù)組。
startingIndex
(Number)
(default 0
)
要解包的元素的起始索引。
result
(Object)
存儲(chǔ)結(jié)果的對(duì)象。