var stream = require('stream');
var readable = new stream.Readable();
readable._read = function (size) {
console.log(size);
}
readable.read(512);
This (with Node 0.10.21) will log 16384 (the high water mark), instead of the expected 512.
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/bCtkcP2aOig/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hey thanks mscdex, yeah I see that, so I must be misunderstanding how it works, I would have though that the number passed to read wouldcarry through to _read, but instead the read method uses it's n parameter independently and always passes in the high water mark?