decord/source/4257_cloneArrayBuffer.js

17 lines
429 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4257
2026-07-24 07:16:23 +00:00
// Function ID: 37360
2026-07-20 16:05:17 +00:00
// Name: cloneArrayBuffer
2026-07-23 10:11:24 +00:00
// Dependencies: [765]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 4257 (cloneArrayBuffer)
2026-07-20 16:05:17 +00:00
export default function cloneArrayBuffer(byteLength) {
const constructor = new byteLength.constructor(byteLength.byteLength);
2026-07-23 10:11:24 +00:00
let tmp2 = require(765);
2026-07-20 16:05:17 +00:00
tmp2 = new tmp2(constructor);
2026-07-23 10:11:24 +00:00
let tmp3 = require(765);
2026-07-20 16:05:17 +00:00
tmp3 = new tmp3(byteLength);
const result = tmp2.set(tmp3);
return constructor;
};