Re: When does NSInputStream's -getBuffer:length: actually work?

2012-07-27 Thread Andreas Grosam
On 25.07.2012, at 19:08, Jens Alfke wrote: > NSInputStream has a -getBuffer:length: method that lets you get the available > data from the stream without copying. This is great for performance, and I've > written my client code to take advantage of it if it's supported, but every > time I've t

Re: When does NSInputStream's -getBuffer:length: actually work?

2012-07-25 Thread Wim Lewis
On 25 Jul 2012, at 10:08 AM, Jens Alfke wrote: > NSInputStream has a -getBuffer:length: method that lets you get the available > data from the stream without copying. This is great for performance, and I've > written my client code to take advantage of it if it's supported, but every > time I'v

Re: When does NSInputStream's -getBuffer:length: actually work?

2012-07-25 Thread Thomas Davie
On 25 Jul 2012, at 18:08, Jens Alfke wrote: > NSInputStream has a -getBuffer:length: method that lets you get the available > data from the stream without copying. This is great for performance, and I've > written my client code to take advantage of it if it's supported, but every > time I've

When does NSInputStream's -getBuffer:length: actually work?

2012-07-25 Thread Jens Alfke
NSInputStream has a -getBuffer:length: method that lets you get the available data from the stream without copying. This is great for performance, and I've written my client code to take advantage of it if it's supported, but every time I've tested, it isn't supported (i.e. just returns NO) so m