-api-id | -api-type |
---|---|
T:Windows.Foundation.IMemoryBufferReference |
winrt interface |
Represents a reference to an IMemoryBuffer object.
The IMemoryBufferReference interface allows a client to retrieve the Capacity of the memory buffer. The same object identity must also implement the COM interface IMemoryBufferByteAccess. A client retrieves the IMemoryBufferByteAccess interface pointer via a QueryInterface from the IMemoryBufferReference object.
Note
Extension functions exist on the C++/WinRT projection types for certain Windows Runtime APIs. For example, winrt::Windows::Foundation::IAsyncAction is the C++/WinRT projection type for IAsyncAction. The extension functions aren't part of the application binary interface (ABI) surface of the actual Windows Runtime types, so they're not listed as members of the Windows Runtime APIs. But you can call them from within any C++/WinRT project. See C++/WinRT functions that extend Windows Runtime APIs.
uint8_t* data() const;
Returns a pointer to the data held inside the buffer.