Z
Z
Zaur Abdulgalimov2015-11-28 02:42:47
Objective-C
Zaur Abdulgalimov, 2015-11-28 02:42:47

How to get the number of available bytes in NSInputStream class in iOS?

Greetings!
Method Returns false, and len=1. And such a call returns the required number of bytes. How can I find out how many bytes are in the stream before the data is read by the read method?
[self.inputStream getBuffer:&buf1 length:&len];
[self.inputStream read:buf maxLength:1024];

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question