Replaced direct use of CFMutableDataRef with C++ object.