On Wed, May 23, 2012 at 7:35 AM, Alan Gutierrez <[email protected]> wrote:
> If I call fs.read using a buffer that is equal to or smaller than the size
> of a file, will fs.read ever return a value for bytesRead that is less than
> the size of the buffer to the callback?
>
> If I call fs.write using a buffer that is equal to or smaller than the size
> of a file, will fs.write ever return a value for bytesRead that is less than
> the size of the buffer to the callback?
>
> That is, can these functions get interrupted and not fill the entire buffer,
> even if there are bytes available to fill the entire buffer?

Yes, that's certainly possible.

-- 
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

Reply via email to