MCPcopy Create free account
hub / github.com/pillarjs/multiparty / LimitStream

Function LimitStream

index.js:550–555  ·  view source on GitHub ↗
(limit)

Source from the content-addressed store, hash-verified

548
549util.inherits(LimitStream, stream.Transform)
550function LimitStream (limit) {
551 stream.Transform.call(this)
552
553 this.bytes = 0
554 this.limit = limit
555}
556
557LimitStream.prototype._transform = function _transform (chunk, encoding, callback) {
558 var length = !Buffer.isBuffer(chunk)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…