Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
- Subject: Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
- From: Jens Alfke <email@hidden>
- Date: Wed, 02 Jul 2014 18:07:23 -0700
On Jul 2, 2014, at 5:58 PM, Jerry Krinock <email@hidden> wrote:
> What might it be doing at these 4K breaks that causes NSFileHandle’s -availableData to stop?
As they said, the buffer of the pipe has a size of 4kbytes. So there cannot ever be more than 4k of available data at a time, because “available” means “sitting in the buffer ready to be copied out”.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden