// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ namespace Win32.Graphics.Direct3D.Dxc; /// IDxcBlobUtf16 [Guid("a3f84eab-0faa-497e-a39c-ee6ed60b2d84")] [NativeTypeName("struct IDxcBlobUtf16 : IDxcBlobEncoding")] [NativeInheritance("IDxcBlobEncoding")] public unsafe partial struct IDxcBlobUtf16 : IDxcBlobUtf16.Interface, INativeGuid { public static ref readonly Guid IID_IDxcBlobUtf16 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { 0xAB, 0x4E, 0xF8, 0xA3, 0xAA, 0x0F, 0x7E, 0x49, 0xA3, 0x9C, 0xEE, 0x6E, 0xD6, 0x0B, 0x2D, 0x84 }; Debug.Assert(data.Length == Unsafe.SizeOf()); return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); } } static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobUtf16)); public void** lpVtbl; /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(0)] public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this), riid, ppvObject); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] [return: NativeTypeName("ULONG")] public uint AddRef() { return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] [return: NativeTypeName("ULONG")] public uint Release() { return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public void* GetBufferPointer() { return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public nuint GetBufferSize() { return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public HResult GetEncoding(Bool32* pKnown, DxcCp* pCodePage) { return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this), pKnown, pCodePage); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] public char* GetStringPointer() { char* result; return *((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this), &result); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] public nuint GetStringLength() { return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); } public interface Interface : IDxcBlobEncoding.Interface { [VtblIndex(6)] char* GetStringPointer(); [VtblIndex(7)] nuint GetStringLength(); } }