根据https://docs.microsoft.com/en-us/uwp/api/windows.foundation.imemorybufferreference,所有实现了IMemoryBufferReference接口的个体都实现了IMemoryBufferByteAccess。IMemoryBufferByteAccess的定义如下:
[ComImport] [Guid("5B0D3235-4DBA-4D44-865E-8F1D0E4FD04D")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] unsafe interface IMemoryBufferByteAccess { void GetBuffer(byte** buffer, uint* capacity); }