Hello,
1) How to read the data from read stream in Objective-C, Below code would give me how many bytes are read from stream, but how to know what data is read from stream?
CFIndex cf = CFReadStreameRead(Stream, buffer, length);
2) How to extract only the 1st 2bytes of data in the read stream in Objective-C For Ex: If this is the data from stream
017MacApp
1st byte has 0 in it, and 2nd byte has 17 in it.
how do i extract o and 17 into byte array?
I know that the below code would give me back the byte array to int value.
((b[0] & 0xFF) << 8)+ (b[1] & 0xFF);
but how to put 0 into b[0] and 17 into b[1]?
plz help me to solve this.