buffer.js 614 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
  4. const buffer_1 = require("buffer");
  5. Object.defineProperty(exports, "Buffer", { enumerable: true, get: function () { return buffer_1.Buffer; } });
  6. function bufferV0P12Ponyfill(arg0, ...args) {
  7. return new buffer_1.Buffer(arg0, ...args);
  8. }
  9. const bufferAllocUnsafe = buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill;
  10. exports.bufferAllocUnsafe = bufferAllocUnsafe;
  11. const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
  12. exports.bufferFrom = bufferFrom;