On Monday, November 4, 2013 6:39:27 AM UTC-5, David Clements wrote:
>
> 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 would 
> carry through to _read, but instead the read method uses it's n parameter 
> independently and always passes in the high water mark?
>
>
My guess is efficiency/performance (reading one large Buffer vs reading x 
individual smaller Buffers possibly needing concatenation to reach n). 
Another thing to remember is that `read(n)` will return *at least* n bytes.

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to