decord/source/1408_isBuffer.js
2026-08-03 11:20:01 +00:00

23 lines
408 B
JavaScript

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