Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$buffer$utils$fastCopy.js
2026-07-01 22:38:29 -06:00

10 lines
960 B
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$buffer$utils$fastCopy = function(global, require, module, exports) {
exports.fastCopy = function(sourceBuffer, destinationBuffer, sourceOffset, byteLength) {
sourceOffset ?? (sourceOffset = 0);
byteLength ?? (byteLength = Math.min(sourceBuffer.byteLength - sourceOffset, destinationBuffer.byteLength));
sourceOffset & 7 || byteLength & 7 ? sourceOffset & 3 || byteLength & 3 ? (new Uint8Array(destinationBuffer)).set(new Uint8Array(sourceBuffer, sourceOffset, byteLength)) : (byteLength /= 4, (new Float32Array(destinationBuffer, 0, byteLength)).set(new Float32Array(sourceBuffer, sourceOffset, byteLength))) : (byteLength /= 8, (new Float64Array(destinationBuffer, 0, byteLength)).set(new Float64Array(sourceBuffer, sourceOffset, byteLength)));
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$buffer$utils$fastCopy.js.map