Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

create_buffer.js 381B

12345678910111213141516
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _buffer = require('buffer');
  6. var createBuffer = _buffer.Buffer.from && _buffer.Buffer.alloc && _buffer.Buffer.allocUnsafe && _buffer.Buffer.allocUnsafeSlow ? _buffer.Buffer.from
  7. // support for Node < 5.10
  8. : function (val) {
  9. return new _buffer.Buffer(val);
  10. };
  11. exports.default = createBuffer;