ICoreWebView2Environment12.CreateSharedBuffer

Create a shared memory based buffer with the specified size in bytes. The buffer can be shared with web contents in WebView by calling PostSharedBufferToScript on CoreWebView2 or CoreWebView2Frame object. Once shared, the same content of the buffer will be accessible from both the app process and script in WebView. Modification to the content will be visible to all parties that have access to the buffer. The shared buffer is presented to the script as ArrayBuffer. All JavaScript APIs that work for ArrayBuffer including Atomics APIs can be used on it. There is currently a limitation that only size less than 2GB is supported.

interface ICoreWebView2Environment12
HRESULT
CreateSharedBuffer

Meta