Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_cloneArrayBuffer.js 449B

12345678910111213141516
  1. var Uint8Array = require('./_Uint8Array');
  2. /**
  3. * Creates a clone of `arrayBuffer`.
  4. *
  5. * @private
  6. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  7. * @returns {ArrayBuffer} Returns the cloned array buffer.
  8. */
  9. function cloneArrayBuffer(arrayBuffer) {
  10. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  12. return result;
  13. }
  14. module.exports = cloneArrayBuffer;