(limit)
| 548 | |
| 549 | util.inherits(LimitStream, stream.Transform) |
| 550 | function LimitStream (limit) { |
| 551 | stream.Transform.call(this) |
| 552 | |
| 553 | this.bytes = 0 |
| 554 | this.limit = limit |
| 555 | } |
| 556 | |
| 557 | LimitStream.prototype._transform = function _transform (chunk, encoding, callback) { |
| 558 | var length = !Buffer.isBuffer(chunk) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…