Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetUnsafePointerToBuffer()

Provides a COM pointer to the native IMFMediaBuffer that contains the image data.
Read time 1 minuteLast updated 13 days ago

Definition

public nint GetUnsafePointerToBuffer()

Returns

Type

Description

IntPtrA native COM pointer to the IMFMediaBuffer which contains the image data.

Remarks

This method provides very low level access to the native COM IMFMediaBuffer object. Therefore care and caution should be applied when using this method.
Please note that each time this method is invoked, an added reference will be applied to the IMFMediaBuffer COM pointer.
The caller is responsible for releasing each instance of the COM pointer.
For more information about the WinRT IMFMediaBuffer object, please visit https://msdn.microsoft.com/en-us/library/windows/desktop/ms696261(v=vs.85).aspx