getRawDataPointer() not marked const


#1

Could you mark Array::getRawDataPointer() and OwnedArray::getRawDataPointer() const?


#2

Not really - it provides a way to change the data, so shouldn't be used on a const Array.


#3

i encountered a similar limitation... probably he wants a const getReadRawDataPointer and non-const getWriteRawDataPointer much like the AudioSampleBuffer, so you can access the raw data in read only const situations. just guessing


#4

yes, I was thinking about it more as a function that should be use for read only situations.  But it's fine.


#5

BTW you could actually just call begin()


#6

cool... completely missed that !!! thanx