DSDSWeb/static/js/Cesium-1.53/Source/Core/getMagic.js

19 lines
422 B
JavaScript

define([
'./defaultValue',
'./getStringFromTypedArray'
], function(
defaultValue,
getStringFromTypedArray) {
'use strict';
/**
* @private
*/
function getMagic(uint8Array, byteOffset) {
byteOffset = defaultValue(byteOffset, 0);
return getStringFromTypedArray(uint8Array, byteOffset, Math.min(4, uint8Array.length));
}
return getMagic;
});