Moved from IntPtr to byte[] in more places

This commit is contained in:
Yoshi Askharoun
2021-10-04 14:17:40 -05:00
parent d0f576c266
commit 5ba04306df
19 changed files with 213 additions and 127 deletions
@@ -30,7 +30,7 @@ namespace Microsoft.Iris.Render.Extensions
Size sizeActualPxl,
int nStride,
SurfaceFormat nFormat,
IntPtr pvData,
byte[] pvData,
[MarshalAs(UnmanagedType.LPStruct), In] ImageRequirements req,
BitmapOptions nOptions,
out HSpBitmap hBmp,
@@ -52,7 +52,7 @@ namespace Microsoft.Iris.Render.Extensions
}
internal static HRESULT SpBitmapLoadBuffer(
IntPtr pvSrc,
byte[] pvSrc,
uint cbSize,
[MarshalAs(UnmanagedType.LPStruct), In] ImageRequirements req,
BitmapOptions nOptions,
@@ -68,7 +68,7 @@ namespace Microsoft.Iris.Render.Extensions
}
internal static HRESULT SpSoundLoadBuffer(
IntPtr pBuffer,
byte[] pBuffer,
int dwSize,
SoundOptions options,
out HSpSound hSound,