{“ast”:null,“code”:“'use strict';nnvar utils = require('../utils');nnvar GenericWorker = require('./GenericWorker');n/**n * A worker which calculate the total length of the data flowing through.n * @constructorn * @param {String} propName the name used to expose the lengthn */nnnfunction DataLengthProbe(propName) {n GenericWorker.call(this, "DataLengthProbe for " + propName);n this.propName = propName;n this.withStreamInfo(propName, 0);n}nnutils.inherits(DataLengthProbe, GenericWorker);n/**n * @see GenericWorker.processChunkn */nnDataLengthProbe.prototype.processChunk = function (chunk) {n if (chunk) {n var length = this.streamInfo || 0;n this.streamInfo = length + chunk.data.length;n }nn GenericWorker.prototype.processChunk.call(this, chunk);n};nnmodule.exports = DataLengthProbe;”,“map”:null,“metadata”:{},“sourceType”:“module”}