I don't see an array for buffer to point to anywhere.
buffer is given a value here:
buffer = cam.readPicture(bytesToRead);
so, presumably, the library has a static buffer that it writes to, and the method returns a pointer to that buffer.
I don't see an array for buffer to point to anywhere.
buffer is given a value here:
buffer = cam.readPicture(bytesToRead);
so, presumably, the library has a static buffer that it writes to, and the method returns a pointer to that buffer.