static RefPtr<Uint8Array> convertToUint8Array(IPC::SharedBufferCopy&& buffer) in these two files: Source/WebKit/GPUProcess/media/RemoteLegacyCDMSessionProxy.cpp Source/WebKit/WebProcess/GPU/media/RemoteLegacyCDMSession.cpp They even have slightly different implementations! There may be other code that could be shared as well. Found during a build fix for a patch on Bug 218315 (see <https://trac.webkit.org/r269251>).
<rdar://problem/71198019>