次の方法で共有


CoreWebView2SharedBuffer Class

Implements: IClosable

A shared memory based buffer object that is created by CoreWebView2Environment.CreateSharedBuffer. The object is presented to script as ArrayBuffer when posted to script with CoreWebView2.PostSharedBufferToScript.

Summary

Members Description
Buffer Returns an IMemoryBufferReference object to access the underlying memory of the shared buffer as an array of bytes.
Size The size of the shared buffer in bytes.
Close
OpenStream Get an stream object that can be used to access the shared buffer.

Properties

Buffer

readonly IMemoryBufferReference Buffer

Returns an IMemoryBufferReference object to access the underlying memory of the shared buffer as an array of bytes.

Size

readonly uint64_t Size

The size of the shared buffer in bytes.

Methods

Close

void Close()

OpenStream

IRandomAccessStream OpenStream()

Get an stream object that can be used to access the shared buffer.

Referenced by