Sha256: 04d0e9fb36e4c8612a9ae693a2b10f74a3687a9fdc9dcb22f00855eeca57a37b

Contents?: true

Size: 449 Bytes

Versions: 300

Compression:

Stored size: 449 Bytes

Contents

var Uint8Array = require('./_Uint8Array');

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  return result;
}

module.exports = cloneArrayBuffer;

Version data entries

300 entries across 276 versions & 32 rubygems

Version Path
sumomo-0.7.3 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
sumomo-0.7.2 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
sumomo-0.7.1 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
sumomo-0.6.4 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
sumomo-0.6.3 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
sumomo-0.6.2 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
sumomo-0.6.1 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
affiliator-0.2.1 node_modules/lodash/_cloneArrayBuffer.js
sumomo-0.6.0 data/sumomo/api_modules/node_modules/lodash/_cloneArrayBuffer.js
guard-sass-lint-0.1.2 node_modules/lodash/_cloneArrayBuffer.js
guard-sass-lint-0.1.1 node_modules/lodash/_cloneArrayBuffer.js
lanes-0.8.0 node_modules/globule/node_modules/lodash/_cloneArrayBuffer.js
lanes-0.8.0 node_modules/lodash/_cloneArrayBuffer.js
minimum_viable_product-0.0.11 test/dummy/node_modules/lodash/_cloneArrayBuffer.js
babel-schmooze-sprockets-0.1.3 node_modules/lodash/_cloneArrayBuffer.js
blackboard-3.1.9 lib/site_template/node_modules/browser-sync/node_modules/lodash/_cloneArrayBuffer.js
blackboard-3.1.9 lib/site_template/node_modules/sass-graph/node_modules/lodash/_cloneArrayBuffer.js
babel-schmooze-sprockets-0.1.2 node_modules/lodash/_cloneArrayBuffer.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-modules-commonjs/node_modules/lodash/_cloneArrayBuffer.js
babel-schmooze-sprockets-0.1.1 node_modules/babel-plugin-transform-es2015-function-name/node_modules/lodash/_cloneArrayBuffer.js