The difference between getPixels and getData

In the ofPixels class,

I don’t know the difference between the two.

What data does the getdata function return in pixel?

And I’m curious what the getPixels() function returns.

I havent seen getPixels() before. just took a look at the code, they seem to do the exact same thing.
I know getData is used on other objects like ofBuffer maybe it is a more uniformized way of doing the same thing. Should getPixels be deprecated?

template<typename PixelType>
PixelType * ofPixels_<PixelType>::getPixels(){
	return pixels;
}

template<typename PixelType>
const PixelType * ofPixels_<PixelType>::getPixels() const{
	return pixels;
}

template<typename PixelType>
PixelType * ofPixels_<PixelType>::getData(){
	return pixels;
}

template<typename PixelType>
const PixelType * ofPixels_<PixelType>::getData() const{
	return pixels;
}

It is. Its been for quite a while now.

As @dimitre mentions, getPixels() and getData() do the same. These return you a pointer to the first element of the pixel data array.