decord/source/__polyfill/01xxx/module_1459.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

22 lines
392 B
JavaScript

// Module ID: 1459
// Function ID: 1460
// Dependencies: []
// Module 1459
export default function isBuffer(copy) {
let tmp = copy;
if (copy) {
tmp = typeof copy === "object";
}
if (tmp) {
tmp = typeof copy.copy === "function";
}
if (tmp) {
tmp = typeof copy.fill === "function";
}
if (tmp) {
tmp = typeof copy.readUInt8 === "function";
}
return tmp;
};