getStateInformation vs setStateInformation (size_t vs int)


#1

AudioProcessor::getStateInformation uses a MemoryBlock param, which stores it’s size as size_t (unsigned long here). setStateInformation uses an int for it’s sizeInBytes. So if I get state with a MemoryBlock and then call to restore it, I have to truncate size_t to an int.

Is there be a desire to make this consistent in the api? Or should I just truncate and move on?


#2

For now, truncate and move on!


#3

Will do. Thx!