interface ICoreWebView2Environment12
interface ICoreWebView2Environment12
: public ICoreWebView2Environment11
A continuation of the ICoreWebView2Environment interface for creating shared buffer object.
Summary
Members | Descriptions |
---|---|
CreateSharedBuffer | Create a shared memory based buffer with the specified size in bytes. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | 1.0.1661.34 |
WebView2 Win32 Prerelease | 1.0.1671 |
Members
CreateSharedBuffer
Create a shared memory based buffer with the specified size in bytes.
public HRESULT CreateSharedBuffer(UINT64 size, ICoreWebView2SharedBuffer ** shared_buffer)
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.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기