{“ast”:null,“code”:“'use strict';nnfunction _classCallCheck(instance, Constructor) {n if (!(instance instanceof Constructor)) {n throw new TypeError("Cannot call a class as a function");n }n}nnvar Buffer = require('safe-buffer').Buffer;nnvar util = require('util');nnfunction copyBuffer(src, target, offset) {n src.copy(target, offset);n}nnmodule.exports = function () {n function BufferList() {n _classCallCheck(this, BufferList);nn this.head = null;n this.tail = null;n this.length = 0;n }nn BufferList.prototype.push = function push(v) {n var entry = {n data: v,n next: nulln };n if (this.length > 0) this.tail.next = entry;else this.head = entry;n this.tail = entry;n ++this.length;n };nn BufferList.prototype.unshift = function unshift(v) {n var entry = {n data: v,n next: this.headn };n if (this.length === 0) this.tail = entry;n this.head = entry;n ++this.length;n };nn BufferList.prototype.shift = function shift() {n if (this.length === 0) return;n var ret = this.head.data;n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;n –this.length;n return ret;n };nn BufferList.prototype.clear = function clear() {n this.head = this.tail = null;n this.length = 0;n };nn BufferList.prototype.join = function join(s) {n if (this.length === 0) return '';n var p = this.head;n var ret = '' + p.data;nn while (p = p.next) {n ret += s + p.data;n }nn return ret;n };nn BufferList.prototype.concat = function concat(n) {n if (this.length === 0) return Buffer.alloc(0);n if (this.length === 1) return this.head.data;n var ret = Buffer.allocUnsafe(n >>> 0);n var p = this.head;n var i = 0;nn while (p) {n copyBuffer(p.data, ret, i);n i += p.data.length;n p = p.next;n }nn return ret;n };nn return BufferList;n}();nnif (util && util.inspect && util.inspect.custom) {n module.exports.prototype = function () {n var obj = util.inspect({n length: this.lengthn });n return this.constructor.name + ' ' + obj;n };n}”,“map”:null,“metadata”:{},“sourceType”:“module”}