I get the warning
Incompatable ponter type 'uint8_t *' send to 'uint8_t **'
when passing value to parameter 'buffer' in below method in NSStream class
- (BOOL)getBuffer:(uint8_t **)buffer length:(NSUInteger *)len;
Below is the code I am using. 'fileStream' is 'NSInputStream' instant object
uint8_t oneByte;
[fileStream read: &oneByte maxLength: 1];
NSUInteger* remaining = 0;
[fileStream getBuffer: &oneByte length:remaining];