It appears from the signature that the method does not want you to allocate space for the buffer, or pass the length: it will return a pointer to an existing buffer, and set the length of that buffer to the NSUInteger
pointer that you pass, like this:
uint8_t *buf;
NSUInteger len;
[fileStream getBuffer:&buf length:&len];