decord/source/1384_isBuffer.js
2026-07-24 07:16:23 +00:00

23 lines
422 B
JavaScript

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