Sha256: 3f335df0d11a32bea0167a2069917d5878b29c6c7008de956a61a4f427767ea6

Contents?: true

Size: 1.61 KB

Versions: 8

Compression:

Stored size: 1.61 KB

Contents

/*global define*/
define(['Core/DeveloperError'], function(DeveloperError) {
    "use strict";

    function throwInstantiationError() {
        throw new DeveloperError('This type should not be instantiated directly.');
    }

    /**
     * Base interface for objects which can store their values as packed
     * elements in an array.
     *
     * @exports Packable
     *
     * @see {PackableForInterpolation}
     */
    var Packable = {

        /**
         * The number of elements used to pack the object into an array.
         * @Type {Number}
         */
        packedLength : undefined,

        /**
         * Stores the provided instance into the provided array.
         * @memberof Packable
         * @function
         *
         * @param {Object} value The value to pack.
         * @param {Array} array The array to pack into.
         * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
         *
         * @exception {DeveloperError} value is required.
         * @exception {DeveloperError} array is required.
         */
        pack : throwInstantiationError,

        /**
         * Retrieves an instance from a packed array.
         * @memberof Packable
         * @function
         *
         * @param {Array} array The packed array.
         * @param {Number} [startingIndex=0] The starting index of the element to be unpacked.
         * @param {Object} [result] The object into which to store the result.
         *
         * @exception {DeveloperError} array is required.
         */
        unpack : throwInstantiationError
    };

    return Packable;
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cesium-0.25.0 app/assets/javascripts/Core/Packable.js
cesium-0.24.1 app/assets/javascripts/Core/Packable.js
cesium-0.24.0 app/assets/javascripts/Core/Packable.js
cesium-0.23.0 app/assets/javascripts/Core/Packable.js
cesium-0.22.0 app/assets/javascripts/Core/Packable.js
cesium-0.21.1 app/assets/javascripts/Core/Packable.js
cesium-0.21 app/assets/javascripts/Core/Packable.js
cesium-0.20.0 app/assets/javascripts/Core/Packable.js