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