(options)
| 2903 | } |
| 2904 | |
| 2905 | function Readable(options) { |
| 2906 | if (!(this instanceof Readable)) |
| 2907 | return new Readable(options); |
| 2908 | |
| 2909 | this._readableState = new ReadableState(options, this); |
| 2910 | |
| 2911 | // legacy |
| 2912 | this.readable = true; |
| 2913 | |
| 2914 | Stream.call(this); |
| 2915 | } |
| 2916 | |
| 2917 | // Manually shove something into the read() buffer. |
| 2918 | // This returns true if the highWaterMark has not been hit yet, |