public IDxcBlob GetOutput(DxcOutKind kind) { Result result = GetOutput(kind, typeof(IDxcBlob).GUID, out IntPtr nativePtr, IntPtr.Zero); if (result.Failure) { return(default);
public unsafe T GetOutput <T>(DxcOutKind kind, out IDxcBlobUtf16?outputName) where T : ComObject { IntPtr outputNamePtr = IntPtr.Zero; GetOutput(kind, typeof(T).GUID, out IntPtr nativePtr, new IntPtr(&outputNamePtr)).CheckError(); outputName = new IDxcBlobUtf16(outputNamePtr); return(MarshallingHelpers.FromPointer <T>(nativePtr) !); }
public Result GetOutput <T>(DxcOutKind kind, out T? @object) where T : ComObject { Result result = GetOutput(kind, typeof(T).GUID, out IntPtr nativePtr, IntPtr.Zero); if (result.Failure) { @object = default; return(result); } @object = MarshallingHelpers.FromPointer <T>(nativePtr); return(result); }
public unsafe Result GetOutput <T>(DxcOutKind kind, out T? @object, out IDxcBlobUtf16?outputName) where T : ComObject { IntPtr outputNamePtr = IntPtr.Zero; Result result = GetOutput(kind, typeof(T).GUID, out IntPtr nativePtr, new IntPtr(&outputNamePtr)); if (result.Failure) { @object = default; outputName = default; return(result); } @object = MarshallingHelpers.FromPointer <T>(nativePtr); outputName = new IDxcBlobUtf16(outputNamePtr); return(result); }
public T GetOutput <T>(DxcOutKind kind) where T : ComObject { GetOutput(kind, typeof(T).GUID, out IntPtr nativePtr, IntPtr.Zero).CheckError(); return(MarshallingHelpers.FromPointer <T>(nativePtr) !); }
public IDxcBlob GetOutput(DxcOutKind kind) { GetOutput(kind, typeof(IDxcBlob).GUID, out IntPtr nativePtr, IntPtr.Zero).CheckError(); return(new IDxcBlob(nativePtr)); }