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.
12 lines
253 B
12 lines
253 B
4 years ago
|
var Buffer = require('buffer').Buffer;
|
||
|
|
||
|
// Backwards compatibility for node versions < 8
|
||
|
if (Buffer.from === undefined) {
|
||
|
Buffer.from = function (a, b, c) {
|
||
|
return new Buffer(a, b, c)
|
||
|
};
|
||
|
|
||
|
Buffer.alloc = Buffer.from;
|
||
|
}
|
||
|
|
||
|
module.exports = Buffer;
|