This is probably a dumb question but since i am new to programming and especially c++ i figured i would ask here.I have the following method inside a class:
/*! Copies the image data from an external raw buffer to
* the internal image buffer.
*
* The member function ASSUMES that the input buffer is of a size compatible
* with the internal storage of the Image object and that the data buffer has
* been already allocated. If the image buffer is not allocated or the
* width or height of the image are 0, the method should exit immediately.
*
* \param data_ptr is the reference to the preallocated buffer from where to
* copy the data to the Image object.
*/
void setData(const Color * & data_ptr);
Does the * & mean anything special? I know Color* is obviously a pointer but im having trouble with this. The external raw buffer mentioned in the comments of the code is a float array and the internal image buffer is a Color* buffer(Color is another class inside the same namespace).
Edit:Wow thanks for all the downvotes! Its not like i mentioned im at a beginner level and just now starting to get into the language. Got to love the stackoverflow community. You make learning so fun!