Here are the examples of the csharp api System.Span.GetPinnableReference() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2552 Examples
19
View Source File : ManagedReadStream.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
public override int Read( byte[] buffer, int offset, int count )
{
var span = new Span<byte>( buffer, offset, count );
int cbRead;
native.read( ref span.GetPinnableReference(), count, out cbRead );
return cbRead;
}
19
View Source File : ManagedWriteStream.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
public override void Write( byte[] buffer, int offset, int count )
{
// var span = new ReadOnlySpan<byte>( buffer, offset, count );
// Can't use ReadOnlySpan due to API inconsistency, there's no ref readonly arguments, only ref readonly returns
var span = new Span<byte>( buffer, offset, count );
native.write( ref span.GetPinnableReference(), count );
}
19
View Source File : VectorPathShape.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
Direct2D.iPathGeometry iPathData.createPathGeometry( Direct2D.iDrawDevice device )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return device.createPathGeometry( ref p.GetPinnableReference(), ref s.GetPinnableReference(), ref f.GetPinnableReference(), pd );
}
19
View Source File : VectorPathShape.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
iPathGeometry iPathData.createPathGeometry( iVrmacDraw utils )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return utils.createPathGeometry( ref p.GetPinnableReference(), ref s.GetPinnableReference(), ref f.GetPinnableReference(), pd );
}
19
View Source File : SimdUtilsExt.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
[MethodImpl( MethodImplOptions.AggressiveInlining )]
public static void offsetGlyphs( this iSimdUtils utils, Span<sVertexWithId> dest, ReadOnlySpan<sGlyphVertex> source, CPoint offsetValue )
{
if( source.IsEmpty || dest.IsEmpty || dest.Length < source.Length || 0 != ( source.Length % 4 ) )
throw new ArgumentException();
int count = source.Length;
unsafe
{
fixed ( sGlyphVertex* ptr = source )
{
IntPtr sourcePtr = (IntPtr)ptr;
utils.offsetGlyphs( ref dest.GetPinnableReference(), sourcePtr, count, offsetValue );
}
}
}
19
View Source File : SimpleShape.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
Direct2D.iPathGeometry iPathData.createPathGeometry( Direct2D.iDrawDevice device )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return device.createPathGeometry( ref p.GetPinnableReference(), ref s, ref f, pd );
}
19
View Source File : SimpleShape.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
iPathGeometry iPathData.createPathGeometry( iVrmacDraw utils )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return utils.createPathGeometry( ref p.GetPinnableReference(), ref s, ref f, pd );
}
19
View Source File : DeviceContextExt.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
public static void setViewports( this IDeviceContext context, CSize size, Span<Viewport> viewports )
{
context.SetViewports( viewports.Length, ref viewports.GetPinnableReference(), size.cx, size.cy );
}
19
View Source File : PathGeometryExt.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
public static void downloadPolylines( this iPolylinePath path, PolylineDelegate poly )
{
Span<sPolylineFigure> figures = stackalloc sPolylineFigure[ path.info.figuresCount ];
path.getFigures( ref figures.GetPinnableReference() );
int figureIndex = 0;
foreach( var f in figures )
{
if( f.vertexCount > 0 )
{
var verts = Unsafe.readSpan<Vector2>( f.firstVertexPointer, f.vertexCount );
poly( figureIndex, verts, f.isFilled, f.isClosed );
}
figureIndex++;
}
}
19
View Source File : PathGeometryExt.cs
License : MIT License
Project Creator : Const-me
License : MIT License
Project Creator : Const-me
public static void copyVertices( this iTriangleMesh mesh, Span<sVertexWithId> span, uint id )
{
mesh.copyVertices( ref span.GetPinnableReference(), id );
}
19
View Source File : BufferWriter.cs
License : MIT License
Project Creator : Cysharp
License : MIT License
Project Creator : Cysharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public ref byte GetPointer(int sizeHint)
{
Ensure(sizeHint);
if (_segment.Array != null)
{
return ref _segment.Array[_segment.Offset + _buffered];
}
else
{
return ref _span.GetPinnableReference();
}
}
19
View Source File : Span.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[Benchmark(OperationsPerInvoke = 16)]
public void GetPinnableReference()
{
var span = new System.Span<T>(_array);
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
}
19
View Source File : GamepadState.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public unsafe Span<Button> GetButtons()
=> new(Unsafe.AsPointer(ref _buttons.Memory.Span.GetPinnableReference())
19
View Source File : JoystickState.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public unsafe Span<Axis> GetAxes()
=> new(Unsafe.AsPointer(ref _axes.Memory.Span.GetPinnableReference())
19
View Source File : MouseState.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public unsafe Span<MouseButton> GetSupportedButtons()
=> new(Unsafe.AsPointer(ref _buttons.Memory.Span.GetPinnableReference())
19
View Source File : MouseState.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public unsafe Span<ScrollWheel> GetScrollWheels()
=> new(Unsafe.AsPointer(ref _scrollWheels.Memory.Span.GetPinnableReference())
19
View Source File : DXCOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 76, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance(this DXC thisApi, Span<Guid> rclsid, Span<Guid> riid, ref void* ppv)
{
// SpanOverloader
return thisApi.CreateInstance(ref rclsid.GetPinnableReference(), ref riid.GetPinnableReference(), ref ppv);
}
19
View Source File : DXCOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Guid* rclsid, Span<Guid> riid, void** ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, rclsid, ref riid.GetPinnableReference(), ppv);
}
19
View Source File : DXCOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Guid* rclsid, Span<Guid> riid, ref void* ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, rclsid, ref riid.GetPinnableReference(), ref ppv);
}
19
View Source File : DXCOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Span<Guid> rclsid, Guid* riid, void** ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, ref rclsid.GetPinnableReference(), riid, ppv);
}
19
View Source File : DXCOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Span<Guid> rclsid, Guid* riid, ref void* ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, ref rclsid.GetPinnableReference(), riid, ref ppv);
}
19
View Source File : DXCOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Span<Guid> rclsid, Span<Guid> riid, void** ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, ref rclsid.GetPinnableReference(), ref riid.GetPinnableReference(), ppv);
}
19
View Source File : DXVAOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 1971, Column 8 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxva2api.h")]
public static unsafe int DXVA2CreateVideoService(this DXVA thisApi, Span<Silk.NET.Direct3D9.IDirect3DDevice9> pDD, Span<Guid> riid, void** ppService)
{
// SpanOverloader
return thisApi.DXVA2CreateVideoService(ref pDD.GetPinnableReference(), ref riid.GetPinnableReference(), ppService);
}
19
View Source File : DXVAOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 1971, Column 8 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxva2api.h")]
public static unsafe int DXVA2CreateVideoService(this DXVA thisApi, Span<Silk.NET.Direct3D9.IDirect3DDevice9> pDD, Span<Guid> riid, ref void* ppService)
{
// SpanOverloader
return thisApi.DXVA2CreateVideoService(ref pDD.GetPinnableReference(), ref riid.GetPinnableReference(), ref ppService);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 258, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetState(this XInput thisApi, uint dwUserIndex, Span<State> pState)
{
// SpanOverloader
return thisApi.GetState(dwUserIndex, ref pState.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 264, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint SetState(this XInput thisApi, uint dwUserIndex, Span<Vibration> pVibration)
{
// SpanOverloader
return thisApi.SetState(dwUserIndex, ref pVibration.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 270, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetCapabilities(this XInput thisApi, uint dwUserIndex, uint dwFlags, Span<Capabilities> pCapabilities)
{
// SpanOverloader
return thisApi.GetCapabilities(dwUserIndex, dwFlags, ref pCapabilities.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, char* pRenderDeviceId, uint* pRenderCount, Span<char> pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, ref pCaptureDeviceId.GetPinnableReference(), pCaptureCount);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, uint* pRenderCount, char* pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), pRenderCount, pCaptureDeviceId, pCaptureCount);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, uint* pRenderCount, char* pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, uint* pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, char* pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, pCaptureCount);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, char* pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, Span<char> pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), ref pCaptureDeviceId.GetPinnableReference(), pCaptureCount);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, Span<char> pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), ref pCaptureDeviceId.GetPinnableReference(), ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, pCaptureCount);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, char* pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, Span<char> pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, ref pCaptureDeviceId.GetPinnableReference(), pCaptureCount);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, Span<char> pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, ref pCaptureDeviceId.GetPinnableReference(), ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, Span<uint> pRenderCount, char* pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, pCaptureCount);
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, Span<uint> pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 297, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetBatteryInformation(this XInput thisApi, uint dwUserIndex, byte devType, Span<BatteryInformation> pBatteryInformation)
{
// SpanOverloader
return thisApi.GetBatteryInformation(dwUserIndex, devType, ref pBatteryInformation.GetPinnableReference());
}
19
View Source File : XInputOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
[NativeName("Src", "Line 304, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetKeystroke(this XInput thisApi, uint dwUserIndex, uint dwReserved, Span<Keystroke> pKeystroke)
{
// SpanOverloader
return thisApi.GetKeystroke(dwUserIndex, dwReserved, ref pKeystroke.GetPinnableReference());
}
19
View Source File : AppleContextLoggingFunctionsOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public static unsafe void LogMessagesToStderr<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] byte* errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T0> user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, private_info, cb, out user_data.GetPinnableReference());
}
19
View Source File : AppleContextLoggingFunctionsOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public static unsafe void LogMessagesToStderr<T0, T1>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] byte* errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T1> user_data) where T0 : unmanaged where T1 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, in private_info.GetPinnableReference(), cb, out user_data.GetPinnableReference());
}
19
View Source File : AppleContextLoggingFunctionsOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public static unsafe void LogMessagesToStderr<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T0> user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(in errstr.GetPinnableReference(), private_info, cb, out user_data.GetPinnableReference());
}
19
View Source File : AppleContextLoggingFunctionsOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public static unsafe void LogMessagesToStderr<T0, T1>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T1> user_data) where T0 : unmanaged where T1 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, in private_info.GetPinnableReference(), cb, out user_data.GetPinnableReference());
}
19
View Source File : AppleContextLoggingFunctionsOverloads.gen.cs
License : MIT License
Project Creator : dotnet
License : MIT License
Project Creator : dotnet
public static unsafe void LogMessagesToStdout<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] byte* errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T0> user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStdout(errstr, private_info, cb, out user_data.GetPinnableReference());
}
See More Examples