mirror of https://github.com/nodejs/node.git
doc: streams: document default objectMode setting
parent
9c6e06bed3
commit
21265e20d3
|
@ -843,7 +843,7 @@ SimpleProtocol.prototype._read = function(n) {
|
||||||
strings using the specified encoding. Default=null
|
strings using the specified encoding. Default=null
|
||||||
* `objectMode` {Boolean} Whether this stream should behave
|
* `objectMode` {Boolean} Whether this stream should behave
|
||||||
as a stream of objects. Meaning that stream.read(n) returns
|
as a stream of objects. Meaning that stream.read(n) returns
|
||||||
a single value instead of a Buffer of size n
|
a single value instead of a Buffer of size n. Default=false
|
||||||
|
|
||||||
In classes that extend the Readable class, make sure to call the
|
In classes that extend the Readable class, make sure to call the
|
||||||
Readable constructor so that the buffering settings can be properly
|
Readable constructor so that the buffering settings can be properly
|
||||||
|
|
Loading…
Reference in New Issue