12345678910111213141516 |
- var cloneArrayBuffer = require('./_cloneArrayBuffer');
- function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
- }
- module.exports = cloneDataView;
|